Skip to main content

media/upload/multi

Lists all attachments associated with a specific document (workflow). Users can attach both files and folders to a workflow in any project language.

URL

CODE
(POST) /api/media/upload/multi

PARAMETERS

Include the file or files in the BODY:

  • Files need to be uploaded using the multipart/form-data content type.

An example using curl:

  • curl -F "one.html=@path_first_file" -F "two.html=@path_second_file" https://...media/upload/multi

Further down we show how to do it with Postman.

RESULTS

A JSON array with the tokens, one per file. You can then pass those tokens for consumption by other API methods. Example:

CODE
{
    "tokens": [
        "73be1612c8344df5bbebe1c00f6fc953",
        "8e40e1b84f144c878a770e77914c510b"
    ]
}

The tokens show up in the order of the files in the HTTP request.

POSTMAN

Uploading multiple files with Postman requires configuration of the “body”:

image-20240404-132315.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.