Skip to Content

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

Upload file - Error 500

Hi,

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

I use:

URL:

https://streamwork.com/v1/activities/.../items?oauth_consumer_key=u2026&oauth_token=u2026&oauth_signature_method=PLAINTEXT&oauth_signature=u2026%26u2026&oauth_timestamp=...&oauth_nonce=...&oauth_version=1.0

Headers:

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

Message:

--myboundry
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>
--myboundry
Content-Disposition: form-data; name="file"; filename="file.jpg"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary

blah-blah binary content
--myboundry--

Method: POST

As result I constantly get ResponseCode 500 from the server.

To me it looks quite similar to the example from: https://streamwork.com/api/Trouble_shooting.html

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