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

前端 未结 7 836
面向向阳花
面向向阳花 2020-12-15 17:34

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

相关标签:
7条回答
  • 2020-12-15 17:56

    There are no such limitation by-design in protocols you said. Only timeouts on concrete servers

    0 讨论(0)
  • 2020-12-15 17:58

    And one important question - are you going to upload or download?

    I could say that downloading has significantly less limitations that uploading. I don't know why. Maybe because main purpose of HTTP and FTP is sending data, not receiving.

    That's why HTTP/FTP servers could break upload session more frequently rather then downloading session.

    0 讨论(0)
  • 2020-12-15 18:00

    The upload in HTTP is usualy limited as the server has to wait until the (mostly slow) upload is finished to respond to the request.

    0 讨论(0)
  • 2020-12-15 18:04

    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?

    0 讨论(0)
  • 2020-12-15 18:05

    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)

    0 讨论(0)
  • 2020-12-15 18:15

    Since the size of a transfer is probably stated near the beginning, I'd bet the limit of your file size is the same as the limit for an unsigned integer. Judging by the time period when HTTP and FTP became popular and useful, I'd say that's a 32-bit unsigned integer, so 2^32 Bytes, or 4.0 GiB.

    0 讨论(0)
提交回复
热议问题