問題描述
我正在建立一個大型網站,允許會員上傳最大 20MB 的內容(圖片、視頻)(可能比 15MB 小一點,我們還沒有確定最終的上傳限制,但會大約在 10-25MB 之間).
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).
我的問題是,在這種情況下,我應該使用 HTTP 還是 FTP 上傳.請記住,80-90% 的上傳將是較小的尺寸,例如 cca 1-3MB,但有時某些成員也會想要上傳大文件(10MB 以上).
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+).
對于如此大的文件,HTTP 上傳是否足夠可靠,還是我應該使用 FTP?上傳文件時,HTTP 和 FTP 之間是否存在明顯的速度差異?
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?
我之所以這么問是因為我使用的是 Zend Framework,它已經有用于文件上傳的 HTTP 適配器,如果我選擇 FTP,我將不得不為它編寫自己的適配器.
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.
謝謝!
推薦答案
HTTP 無疑給您的客戶減輕了負擔.許多地方都有阻止所有 FTP 流量(傳入或傳出)的代理或防火墻.
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 上傳的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!