AnsweredAssumed Answered

Problem uploading files through Akamai NetStorage HTTP API

Question asked by Prakhar Mishra on Aug 7, 2015
Latest reply on Sep 7, 2015 by Prakhar Mishra

Hello Folks,


I am trying to upload a file through Akamai NetStorage HTTP API, but not able to do it. The POST request my app is sending is similar to this one:


POST /pic.jpg HTTP/1.1

Host: ******

Accept: */*

Accept-Encoding: identity

Connection: close

X-Akamai-ACS-Action: version=1&action=upload&upload-type=form&field-name=File0

X-Akamai-ACS-Auth-Data: 5,,, 1438952099250, d56a7ddc-e1ea-48d9-944a-e717a5633ed9, xxxxxxxxxxxxx

X-Akamai-ACS-Auth-Sign: 0AhLr13kY0iVNvWOec4GN6v+huhQrSJrn03RKFuGNEg=

Content-Type: multipart/form-data; boundary=---------------------------02gwpaagxmr

Content-Length: 4927




Content-Disposition: form-data; name="File0"; filename="photo.jpg"

Content-Type: image/jpeg




<Some jpeg file content>


And, in response, what I am getting is:

HTTP/1.1 404 Not Found

Server: Apache

Content-Type: text/html; charset=iso-8859-1

Expires: Fri, 07 Aug 2015 12:54:56 GMT

Cache-Control: max-age=0, no-cache, no-store

Pragma: no-cache

Date: Fri, 07 Aug 2015 12:54:56 GMT

Content-Length: 16

Connection: close



File not found."


Can anybody please tell me what might be going wrong with the way I am sending data to the server?