Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hi Mark,
Could you share the REST call that you're using to create the File? From my experience, it hasn't been possible to upload a file directly through AML outside of a Server Method or the Batchloader.
You can try creating a Server Method that creates a File within it, and then use the REST API to call that Server Method. You can find an example of the REST call to do this below.
url: localhost/.../method.CreateFile
body: {
"@odata.type": "">localhost/.../$metadata,
"file_path": "C:\\Temp\\MY_FILE_NAME.MY_FILE_EXTENSION"
}
Chris
Christopher Gillis Aras Labs Software Engineer
Christopher Gillis Aras Labs Software Engineer