Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    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"; curl; Value )   More

(old name: CURL.SetOptionMaxFileSizeLarge)


Parameter Description Example value
curl 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 MAXFILESIZE option in CURL manual.

See also

Created 18th August 2014, last changed 18th April 2016

CURL.SetOptionMaxConnects   -   CURL.SetOptionMaxRecvSpeed

Feedback: Report problem or ask question.

MBS FileMaker Plugins