Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Upload file - Error 500


I'm trying to upload a file to an activity;

I use:



{content-type=multipart/form-data; boundary=myboundry, accept=application/xml, content-length=2720}


Content-Disposition: form-data; name="item"; filename="item.xml"
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8"?><item name="My Item Name">  <description>My File uploaded</description>  <file_item/></item>
Content-Disposition: form-data; name="file"; filename="file.jpg"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary

blah-blah binary content

Method: POST

As result I constantly get ResponseCode 500 from the server.

To me it looks quite similar to the example from:

Please, any idea what am I doing wrong ?

Thank you !

Former Member
Not what you were looking for? View more on this topic or Ask a question