AnsweredAssumed Answered

Netstorage HTTP API problem with upload files

Question asked by Qamar Ul Zaman on Mar 3, 2017
Latest reply on Mar 13, 2017 by Werner Wachsmann

I am trying to upload the files to Netstorage using HTTP API and Its fine for small files but when it comes to big file I am trying to send data in chunks and server is rejecting the data with following error:


cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received (see


Here is my put call.

Client->put('/******/Watch/StarTrek.mp4', array('headers' => array('X-Akamai-ACS-Action' => 'version=1&action=upload&sha1=321c533ca926ed577dec568b2f78b9ed04651ed3&mtime=1488528308', 'Content-Length' => '1995545915'), 'body' => resource))

Actual code:

$client->put('/' . $cpCode . '/Watch/'.$video->video_file, [

            'headers' => ['X-Akamai-ACS-Action' => 'version=1&action=upload&sha1=' .sha1($fileContents).'&mtime='.strtotime(date('H:i:s')),

                'Content-Length' => filesize(base_path() . '/'.$video->video_file)


            'body' => fopen('******/$video->video_file', 'r')


I am using GitHub - akamai-open/NetStorageKit-PHP: Akamai NetStorage for PHP  with http guzzle. Can anyone let me know if I am doing anything wrong.