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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

CURL.AddInputFile

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 )

Parameters

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

Result

Returns "OK" on success.

Description

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.

Examples

Add container:

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

See also


CUPS.PrintFile   -   CURL.AddInputGIF

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins