TrackRecordPro API Documentation TrackRecordPro

uploadFile()

Summary

Method Name

uploadFile

Minimum Supported API Version3.0

uploadFile

$result = uploadFile($upload_id, $filecontent)

Details

Describe the method

Parameters

$upload_idThe upload ID from an entry in the files table. Note that this is not the numeric value of the ID field, but the UUID value of the upload_endpoint field.
$filecontentThe contents of the file to upload. This should be the raw file data with no form of encoding applied.

Return value

A status object indicating if the file was uploaded, or may throw any of the following exceptions on failure:

  • HTTPException
  • JSONResponseException
  • MalformedJSONException

 

Updates values in all entries matching $filter from the assetqueue table.