# File uploads

The Ultimo REST API is able to receive file uploads. There are two ways to send files:

* Sending multipart/form-data content
* Using Base64 encoded strings in the request body

For both options, it is required to create a specific workflow in Ultimo by a consultant to process these requests correctly.&#x20;

It is recommended to send files using multipart/form-data format. Using Base64 encoding increases the file size by approximately 33%, resulting in larger payloads and additional processing time. Additionally, multipart/form-data supports transmitting larger files (see Limits and Quotas).

*Example of a multipart/form-data request*

```
curl --location "https://customer.ultimo.net/api/v1/action/_REST_UploadFile" ^
--header "applicationelementid: 99999999-9999-9999-9999-999999999999" ^
--header "apikey: 99999999999999999999999999999999" ^
--form "File=@C:/temp/Manual.pdf" ^
--form "JobId=123456789"
```

An example of how to use base64 in requests can be found [here](/api-key-templates/jobs/attach-or-change-images.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.ultimo.net/api-guide/rest/file-uploads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
