简体   繁体   English

大文件上传是FTP还是HTTP?

[英]FTP or HTTP for large file uploads?

I am debating whether to use FTP or HTTP for large file upload and downloads. 我正在辩论是否使用FTP或HTTP进行大文件上载和下载。 File uploads will consists of text and audio files, from a range of a couple of KB - 200MB. 文件上传将包括文本文件和音频文件,范围从KB到200MB。 I have a couple of questions, such as: 我有几个问题,例如:

  1. Which would be faster? 哪个会更快? HTTP or FTP HTTP或FTP
  2. Which would be more reliable? 哪个更可靠?
  3. Which would be of greater ease and convenience for the end user? 对于最终用户而言,哪一个更容易和方便?
  4. What other alternatives are there for larger file uploads. 对于较大的文件上传,还有什么其他选择。

Note: I need to somehow keep track of what files what users upload. 注意:我需要以某种方式跟踪用户上传的文件。

Thanks a bunch! 谢谢一群!

In my opinion File transfers which are part of a website navigation should use the same protocol, as switching protocol may require additional work on your server, and it will open a new connection. 我认为,作为网站导航一部分的文件传输应使用相同的协议,因为交换协议可能需要在服务器上进行其他工作,这将打开一个新的连接。 Moreover, HTTP supports POST and PUT methods which are designed for that goal. 此外,HTTP支持为此目的而设计的POST和PUT方法。

If you simply want to upload files, then FTP is the dedicated protocol, but it may not be implemented on all web browser. 如果您只想上传文件,则FTP是专用协议,但是可能无法在所有Web浏览器上实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM