Skip to main content

So, long story short - I am trying to upload a document using Postman and I am literally stuck on the last step:

[ ] Running a patch request against https://SOMURL:SOMEPORT/int/ifsapplications/projection/v1/CreateAndImportDocument.svc/EdmFileSet(DocClass='100',DocNo='1008475',DocSheet='1',DocRev='A1',DocType='ORIGINAL',FileNo=1)/FileData 

p ] Set headers X-IFS-ContentDisposition with the filename=Ym9wcC5kb2N4

< ] Set If-Match to a *

> ] Set Content-Type to application/octet-stream

p ] Body is binary with the file

p ] I am using a pure integration user and not IFSAPP, all rights checked

p ] Using IFS Applications 10 update 11

 

regardless of what I do I get:

 

{

    "error": {

        "code": "ODATA_PROVIDER_ERROR",

        "message": "An internal server error occurred. Contact administrator."

    }

}

 

Can someone please point me in the right direction?

Hi @AndreasIsengaard ,

May be it’s due to content disposition header

 

it should be 

X-IFS-Content-Disposition: filename=Ym9wcC5kb2N4

 

Script by Mathias worked for me some times ago without a problem

Upload document via CreateAndImportDocument.svc/EdmFileSet | IFS Community

 

Cheers!

Damith


thank you for pointing out the obvious :)