Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum file size I can transfer using HTTP? And using FTP?

Tags:

Added: I am conducting a study for a new system we're going to develop in my work. It consists in authenticating users, displaying what files they want to download and downloading them. Also, if the files are not readily available, the user can't download them, but the server obtains a copy of the requested file and notifies the user by mail when he can get the file. We expect files to be tipically from 2 to 50 gigabytes in size, for now.

I just want to check if it's possible to write a Web application to solve the problem or if we need to make a client-server solution.

like image 909
Thiago Chaves Avatar asked Jan 20 '09 13:01

Thiago Chaves


People also ask

Is there a file size limit for FTP?

Answer: There is not a limit on the size of the file. But keep in mind that the bigger the file the longer it will take to be transferred. However, either a ReadTimeout or OutOfMemory message may appear, depending on how many files are on the ftp server, and how large the files are.

Is FTP better than HTTP for downloading files?

Ultimately, FTP is more efficient at transferring large files, whereas HTTP is better for transferring smaller files such as web pages. Although both utilize TCP as the protocol of choice, HTTP uses a persistent connection, thus making the performance of the TCP better with HTTP than with FTP.

Is there a file size limit for SFTP?

SFTP supports very large files - the theoretical maximum file size supported by the SFTP protocol is 2^63 bytes, which is 9,223,372,036,854,775,807, or 9,223,372 TB.


2 Answers

There is no maximum. Any max you are encountering is application specific or site specific.

I've downloaded DVD isos from Microsoft using HTTP and FTP without issue (~4gb).

I've also uploaded huge files via both methods.

Can you elaborate on what you're trying to do?

like image 93
Michael Haren Avatar answered Oct 06 '22 03:10

Michael Haren


As already answered, the protocol has no limitations, but most HTTP servers have default upload limits out-of-the-box:

IIS6 uses MaxRequestEntityAllowed (default is 4GB) and AspMaxRequestEntityAllowed (default is 200000 bytes) in metabase.xml.

IIS7 uses maxRequestEntityAllowed: **appcmd set config /section:asp /maxRequestEntityAllowed:***int* (default is 200000 bytes)

Apache uses LimitRequestBody (default is 2GB)

like image 43
Grant Wagner Avatar answered Oct 06 '22 04:10

Grant Wagner