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  


Adds input to file data from the container value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.7 Yes Yes Yes Yes Yes
MBS( "CURL.AddInputFile"; curl; data )   More


Parameter Description Example value
curl The CURL session handle. $curl
data The container value with the data to upload.


Returns "OK" on success.


Adds input to file data from the container value.
Also sets input file length. You need to define input data for file uploads, http posts and http put operations.
Using SetInput* functions and AddInput* functions you can construct the input data in several function calls. This is useful if you do a multipart upload with text parts and file content mixed.

This is for adding to existing data, but for uploading only a file, you can use CURL.SetInputFile.
If you have a file path, please use CURL.OpenInputFile instead.


Add container:

MBS( "CURL.AddInputFile"; $curl; MyTable::MyContainer )

See also

Blog Entries

Created 18th August 2014, last changed 20th April 2017

CUPS.PrintFile   -   CURL.AddInputGIF

Feedback: Report problem or ask question.

MBS FileMaker blog