Jeffrey
Jeffrey

Reputation: 4146

PHP: upload files (vids) directly to S3

I'm looking for examples (maybe on Github, blog, or elsewhere) that demonstrate how to upload files (videos) directly from a php http post form to AWS S3. The main requirement is to see the progress of the upload in action and trigger a response when complete (without reloading the page). jQuery File Upload Plugin could be a good solution, do you know of any code examples that do this? The files (videos) will be up to 1gb in size, so propose a different method if you think this won't work well.

Upvotes: 2

Views: 469

Answers (1)

alexcasalboni
alexcasalboni

Reputation: 1724

You have checked this out, right?

Sadly, there's no progress involved by default. Probably you should do it yourself using AWS serverside API and ajax polling (or websockets), which would add workload for your server, though.

Here is a C# example of how to track the Multipart Upload Progress.

Otherwise you could go for a client-side approach with the Javascript SDK.

Upvotes: 1

Related Questions