Hello, I am trying to upload an attachment (to a customer order in this example) in IFS Cloud via the Rest API. I am following the documentation found in this post: https://community.ifs.com/technology%2Dinfrastructure%2Dcloud%2Dintegration%2Ddev%2Dtools%2D50/upload%2Ddocument%2Dvia%2Dcreateandimportdocument%2Dsvc%2Dedmfileset%2D6284?postid=23329#post23329
I understand the process has 4 parts:
- Create the document
- Attach the document to an object (Customer Order in this case)
- Ask for an upload URL for the attachment
- Upload the attachment.
I have successfully performed items 1-3 via postman, and received my upload URL:
1https://[MY IFS SERVER]/int/ifsapplications/projection/v1/CreateAndImportDocument.svc/EdmFileSet(DocClass='AGREEMENT',DocNo='1551348',DocSheet='1',DocRev='A1',DocType='ORIGINAL',FileNo=1)/FileData
When i try to upload my document, i receive this response:
1{2 "error": {3 "code": "ODATA_PROVIDER_ERROR",4 "message": "An internal server error occurred. Contact administrator.",5 "details": [6 {7 "code": "PROJECTION_IMPL_EXCEPTION",8 "message": "Error when writing the file: Error while uploading the file. Detail: null"9 }10 ]11 }12}
I have tried in both postman and python via requests module and i receive the same error. This is what my postman request looks like:


Any idea what i am doing wrong here?