Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0    Statistic  


Sets the maximum file size for download.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionMaxFileSize"; Handle; Value )

(old name: CURL.SetOptionMaxFileSizeLarge)


Parameter Description Example value
Handle The CURL session handle. $curl
Value The new maximum file size. 1000000


Returns "OK" on success.


Sets the maximum file size for download.
Pass a number as parameter. This allows you to specify the maximum size (in bytes) of a file to download. If the file requested is larger than this value, the transfer will not start and CURLE_FILESIZE_EXCEEDED will be returned.

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. This concerns both FTP and HTTP transfers.

See also

CURL.SetOptionMaxConnects   -   CURL.SetOptionMaxRecvSpeedLarge

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins