HTML Direct Upload Data to Amazon S3 Part 0: Outline

Overview

This is an outline of related topics I have talked about direct upload data to Amazon S3: Tracking uploada data, Memory Data Upload, S3, PHP, HTML, Javascript.

To indeed implement the whole systems to support HTML Direct Upload Data to Amazon S3 is a totally different story. And one drawback for the HTML form direct uploading given by the official document is that we cannot track the data in S3 since the form directly send request to S3 rather than our application server. And additionally, there could be memory data to be uploaded, all these motivates me to find another way without using the form structure. So I come up with these series about “HTML Direct Upload Data to Amazon S3″. I will go some more details in the next section.

HTML Direct Upload Data to Amazon S3 Outline

Well, after Amazon S3 introduced the CORS feature we can securely upload files directly into an S3 bucket, from the HTML client-side, without going through our application server. As the official document indicates the process is like the following :

 

The whole system and the work flow could now be described as:

  1. The user opens a web browser and accesses your web page.
  2. Your web page contains an HTTP form that contains all the information necessary for the user to upload content to Amazon S3.
  3. The user uploads content directly to Amazon S3.

However, to indeed implement the whole systems to support HTML Direct Upload Data to Amazon S3 is another total different story. And one drawback for the HTML form direct uploading is that we cannot track the data in S3 since the form directly send request to S3 rather than our application server. And additionally, there could be memory data to be uploaded, all these motivates me to find another way without using the form structure. So I come up with the following series about “HTML Direct Upload Data to Amazon S3″ include five main parts:

I summarized all the tricks I tried all the traps I fell all the mistakes I have ever made and hoping these series could give the readers a good start point for any more interesting applications related to S3. At least I have give two extended ideas: 1. how to track the directly uploaded data? 2. Upload memory data.  I hope you all enjoyed these.

Summary

Well, I basically summarized why I want to do these series about  ”HTML Direct Upload Data to Amazon S3″ and it is basically because the direct HTML form uploading has some drawbacks, i.e., cannot track the data in S3. Another reason might be that Amazon S3 is a bit clunky and I do go many wrong ways and hope to summarized them so the readers won’t go that. Memory data upload is tried too in my experiment and I hope all these could be a good start point making your life easier to make more interesting things if it is based on sort of direct uploading data and S3. Feel free to leave any comments and if you can share more accurate or insightful ideas you have in your mind, that would be really appreciated! Thanks a lot!

 


(Please specify the source  烟客旅人 sigmainfy — http://www.sigmainfy.com  as well as the original permalink

URL for any reprints,  and please do not use it for commercial purpose)

Written on October 7, 2014