- Add protocols field to max-filesize.d.
- Revert wording on unknown file size caveat and do not discuss specific
protocols in that section.
Partial revert of
ecf0225. All max-filesize options now have the list of
protocols and it's clearer just to have that list without discussing
specific protocols in the caveat.
Reported-by: Josh Soref
Ref: https://github.com/curl/curl/issues/7453#issuecomment-
884128762
Long: max-filesize
Arg: <bytes>
Help: Maximum file size to download
+Protocols: FTP HTTP MQTT
See-also: limit-rate
Category: connection
---
number as kilobytes, 'm' or 'M' makes it megabytes, while 'g' or 'G' makes it
gigabytes. Examples: 200K, 3m and 1G. (Added in 7.58.0)
-**NOTE**: For protocols where the size is not known in advance (including FTP
-and HTTP) this option has no effect even if the file transfer ends up being
-larger than the given limit.
+**NOTE**: The file size is not always known prior to download, and for such
+files this option has no effect even if the file transfer ends up being larger
+than this given limit.
\ No newline at end of file
this value, the transfer will not start and \fICURLE_FILESIZE_EXCEEDED\fP will
be returned.
-For protocols where the size is not known in advance (including FTP and HTTP)
-this option has no effect even if the file transfer ends up being larger than
-the given limit.
+The file size is not always known prior to download, and for such files this
+option has no effect even if the file transfer ends up being larger than this
+given limit.
If you want a limit above 2GB, use \fICURLOPT_MAXFILESIZE_LARGE(3)\fP.
.SH DEFAULT
larger than this value, the transfer will not start and
\fICURLE_FILESIZE_EXCEEDED\fP will be returned.
-For protocols where the size is not known in advance (including FTP and HTTP)
-this option has no effect even if the file transfer ends up being larger than
-the given limit.
+The file size is not always known prior to download, and for such files this
+option has no effect even if the file transfer ends up being larger than this
+given limit.
.SH DEFAULT
None
.SH PROTOCOLS