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.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    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"; Handle; data )


Parameter Description Example value
Handle 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

CUPS.PrintFile   -   CURL.AddInputGIF

Feedback: Report problem or ask question.

MBS Xojo Plugins