ssCore.HTTP.inputFile

Allows you to provide files that should be sent with a POST request.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

name - Field name(s) to associate with the supplied file(s). You can use the same name for all files (just supply one name) or a unique name for each file, separate each name by newlines ('\n').

path - The local path(s) to the files that are to be posted, separated by newlines ('\n').


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.HTTP.inputFile( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.HTTP.inputFile( paramsObject );


Notes:

None.


Examples:

ssCore.HTTP.inputFile({name:"file", path:ssGlobals.ssStartDir+"\\file.jpg"});