直接上传到S3,而无需使用生产服务器 [英] Direct upload to s3 without the use of a production server

查看:378
本文介绍了直接上传到S3,而无需使用生产服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在创造一个媒体驱动的网站,要求我们的用户通过互联网提交非常大的广播级质量的视频文件。我们要削减带宽问题通过消除使用我们的生产服务器(其中的网站),以及刚刚创建的用户和S3帐户之间的连接。

We are creating a media driven website that requires our users to submit very large broadcast quality video files over the internet. We want to cut bandwidth issues out by eliminating the use of our production server (where the website is), and just creating a connection between the user and a s3 account.

为使事情更有趣,我们的托管服务只允许50MB上传通过PHP ...

To make matters even more fun, our hosting service only allows 50MB an upload through PHP...

我看过所有在互联网上的一个可行的解决方案,任何人可以帮助?

I've looked all over the internet for a feasible solution, can anybody help?

一个进度条将有不俗的表现也是如此。

A progress bar would be terrific as well.

推荐答案

要做到这一点,最简单的方法是使用的 S3 POST上传API 。如果你需要一个进度条,你可以做这很容易对HTML5的浏览器的;如果你需要支持旧的浏览器,你可能需要一个Flash上​​传。

The simplest way to do this is with the S3 POST upload API. If you need a progress bar, you can do that easily on HTML5 browsers; if you need to support older browsers you may need a flash uploader.

这篇关于直接上传到S3,而无需使用生产服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆