I
IramK
Guest
Hello, I have carried out uploading files onto Rollbase (Trial account and Private Cloud) with files less than 2MB. I am trying to upload files greater than 2MB over private cloud using the code given here: https://community.progress.com/community_groups/rollbase/f/25/t/14028.aspx?pi20882=2#50394. Since HTTP request body uses multipart form data to process larger files, I am trying to build the request body to send the POST data. When trying to do that, I am getting an error: " Corrupt form data: premature ending " Could you guys let me know on where I am going wrong? POST http://privatecloud.com/rest/api/setDataField HTTP/1.1 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Content-Type: multipart/form-data; boundary=----=_Part_2_5070931.1417531039501 Host: privatecloud.com Content-Length: 342 Expect: 100-continue ----=_Part_2_5070931.1417531039501 Content-Disposition: form-data; name=\file\; filename=\TestFile\ Content-Type: text/plain &sessionId=73928cdf928848ad9d6a9dbeb1058e96@1&objName=demoAttachment&id=39898&fieldName=file&fileName=Hello World.txt&output=xml&value=SGVsbG8gV29ybGQh&contentType=text/plain ----=_Part_2_5070931.1417531039501 Error: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Content-Length: 116 Date: Tue, 02 Dec 2014 17:16:41 GMT Connection: close ?xml version="1.0" encoding="UTF-8" ? resp status="fail" err Corrupt form data: premature ending /err /resp
Continue reading...
Continue reading...