Execute asset upload

Upload an asset.

ExecuteAssetUpload: function (_sURL, _sMethod, _sDORecordID, _sFormat, _sParameterName, _oCustomHeader, _fCallbackSuccess, _fCallBackFail)

Request parameter attributes

AttributeTypeDescriptionRequired
URLstringThis attribute must be one of the following:
  • An API call URL Example: /API/Module/v1.0/Action?Parameter=Value&OtherParam=Value2
  • An object with the following properties:
    • _oRequest.Url
    • _oRequest.Method
    • _oRequest.Data
    yes
    MethodstringSpecify the HTTP call method (GET, POST, etc.). Refer to Mozilla’s documentation for a full list of method options. This attribute is required.yes
    DORecordIDstringThe record ID of an asset.yes
    FormatstringThe asset format.yes
    ParameterNamestringThe key of the key-value pair in which the asset is the value.
    For example, if the system uploading the file expects a key-value pair of “file:{fileName}”, enter “file”.
    yes
    CustomHeaderobjectHTTP headers of the API call.yes