dsbx40787736 2011-07-01 03:29
浏览 137

如何使用PHP和进度条将文件直接上传到S3

There are some similar questions but none have a good answers in how to upload files directly to S3 using PHP with progress bar. Is it even possible adding a progress bar without using Flash?

NOTE: I am referring to uploading from client browser directly to S3.

  • 写回答

4条回答 默认 最新

  • dongne1560 2011-07-01 07:27
    关注

    Technically speaking, with PHP you cannot go from client --> S3. Your solution, if you want to use PHP would either have to be designed as follows:

    • Client -> Web Server (PHP) -> Amazon S3
    • Client with PHP server embedded -> Amazon S3

    The AWS PHP SDK: http://aws.amazon.com/sdkforphp/ is very well written and contains a specific example on how to send a file from a Client --> Server --> S3

    With respects to the progress bar, there are many options available. A quick search of stackoverflow.com shows a question answered identical to this one:

    评论

报告相同问题?