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 file input size.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionInFileSize"; curl; Value )   More

(old name: CURL.SetOptionInFileLarge)


Parameter Description Example value
curl The CURL session handle. $curl
Value The input size. 1234


Returns "OK" on success.


Sets the file input size.
When uploading a file to a remote site, this option should be used to tell libcurl what the expected size of the infile is. This value should be passed as a long. See also CURL.SetOptionInFileLarge.

For uploading using SCP, this option is mandatory.

When sending emails using SMTP, this command can be used to specify the optional SIZE parameter for the MAIL FROM command.
This option does not limit how much data libcurl will actually send, as that is controlled entirely by what the input data.
Our CURL.SetInputText and other input functions also set the file size.

See also INFILESIZE option in CURL manual.


Sets size of input:

MBS( "CURL.SetOptionInFileSize"; $curl; $size )

See also

Created 18th August 2014, last changed 8th December 2016

CURL.SetOptionIgnoreContentLength   -   CURL.SetOptionInterface

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins