For the complete documentation index, see llms.txt. This page is also available as Markdown.

_upload

Parameters

Filedata

The data of the file being uploaded.

type_id

The ID of the item this file is being uploaded to. (e.g a Job)

type_enum

The type of file upload being done.

filename

The name of the file being uploaded

Example

FM_api('File_upload',[
  'Filedata'=>'data:text/csv;base64,SWQsIkRhdGUgQ3JlYXRlZCIsIkRhdGUgQXNzaWduZWQiLCJBc3NpZ25lZCBUbyIsQ3VzdG9tZXIsU3ViamVjdCxUeXBlLCJEdWUgRGF0ZSIsRGV0YWlscyxSZXNvbHV0aW9uLFB1YmxpYy9Qcml2YXRlLFN0YXR1cywiTWludXRlcyBTcGVudCIsTm90ZXMKMzk4MDAyLCIyMDI0LTA5LTAzIDE2OjUwOjIwIiwiMjAyNC0wOS0wMyAxNjo1MDoyMCIsImFwaSB0ZXN0cyIsIkEgVGVzdCBDdXN0b21lciIsZGUsIm5ldyB0YXNrIHR5cGUiLCIyMDI0LTA5LTIwIDE3OjUwOjAxIixqdXNkLCwxLE5ldywwLAo=',
  'type_id'=>'772025',
  'type_enum'=>'3',
  'filename'=>'tasks.csv'
]);

Results

On Success

On Failure

If the "type_id" parameter is not set:

If the "Filedata" parameter is not set:

If the file fails to upload:

Last updated