> For the complete documentation index, see [llms.txt](https://docs.acho.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acho.io/app-builder/app-construction/elements/form-elements/upload.md).

# Upload

You can add an Upload element in your data app for your end users to upload files. The files end users uploaded will be saved in your media files in Resources. You can then load the files to databases, or use them in machine learning use cases.

<figure><img src="/files/La2E1JJxEru3fhinuOGy" alt=""><figcaption></figcaption></figure>

## Properties

**Form item name:** This is the name that the encompassing form will use to access the output of the checkbox. See [Custom Form](/app-builder/app-construction/elements/form-elements/custom-form.md) for how it's used.

**Path:** Select the directory path where the uploaded files will be stored in media folders.&#x20;

**Public URL:** This property specifies the public URL where the uploaded files can be accessed. It is essential for retrieving and displaying the files to end users.

**Multiple:** Whether or not allow user to upload multiple files.

**Allow extensions:** This property determines which file types are allowed for upload. Extensions should be listed and separated by commas, e.g., <mark style="color:red;">`png,jpeg,gif`</mark>.

**Max File Size:** This defines the maximum size for uploaded files, measured in kilobytes (KB). Setting this to 0 may allow files of any size, depending on server configurations.

## Example: Load User uploaded CSV files to PostgreSQL

Combining Upload and the Load CSV To Postgres API, you can build service for users to upload csv and preview them. This example serves as one of our template **Upload CSV template,** which you can find in the app builder.

1. Add An Upload element
2. Select event **Upload Successfully**
3. (Optional) Use Generate Unique ID to get a table name and save it in app data
4. Add the "Load CSV To Postgres" action. Use the path of the first uploaded file as the `Path` parameter.
5. (Optional) Add a "Set Text" action to display a message indicating whether the operation was successful.

<figure><img src="/files/xcGLe9kCCfYRoihbGJXo" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.acho.io/app-builder/app-construction/elements/form-elements/upload.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
