HTTP与FTP上传 [英] HTTP vs FTP upload

查看:150
本文介绍了HTTP与FTP上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个大型网站,允许成员上传20MB大小的内容(图片,视频)(可能稍小于15MB,我们还没有确定最终的上传限制,但它会大约在10-25MB之间)。

我的问题是,在这种情况下,我应该使用HTTP还是FTP上传。请记住,80-90%的上传将会像cca 1-3MB这样的较小尺寸,但有时会有一些成员也想上传大文件(10MB以上)。

< HTTP上传足够可靠的这样的大文件,或者我应该去FTP?在上传文件时,HTTP和FTP之间有明显的速度差异吗?



我在问,因为我使用Zend Framework,它已经有文件上传的HTTP适配器,万一我选择FTP,我将不得不为自己写适配器。



谢谢!

解决方案

你的客户。很多地方都有代理或防火墙阻止所有FTP流量(进出)。

I am building a large website where members will be allowed to upload content (images, videos) up to 20MB of size (maybe a little less like 15MB, we haven't settled on a final upload limit yet but it will be somewhere between 10-25MB).

My question is, should I go with HTTP or FTP upload in this case. Bear in mind that 80-90% of uploads will be smaller size like cca 1-3MB but from time to time some members will also want to upload large files (10MB+).

Is HTTP uploading reliable enough for such large files or should I go with FTP? Is there a noticeable speed difference between HTTP and FTP while uploading files?

I am asking because I'm using Zend Framework which already has HTTP adapter for file uploads, in case I choose FTP I would have to write my own adapter for it.

Thanks!

解决方案

HTTP definitely puts less of a burden on your clients. A lot of places have proxies or firewalls that block all FTP traffic (in or out).

这篇关于HTTP与FTP上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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