AnsweredAssumed Answered

File Upload using PHP + cURL

Question asked by Aditya Dutta on Jul 24, 2015
Latest reply on Jul 27, 2015 by Michael Haag



I am developing a small UI for uploading files to Akamai File Storage. An HTML form asks users to collect select one/multiple file(s) and then a PHP should upload files to Akamai.


I got two options:


1. Execute pscp.exe commands from PHP to copy files to Akamai. This works fine.

2. Use Net Storage HTTP API to upload files.


I prefer option 2 as it is more powerful.


Are there any sample codes available which use HTTP API to upload files? I am a newbie to HTTP API and finding it difficult to create requests either using HttpRequest function or PHP-cURL.


With Regards

Aditya Dutta