# multipart

{% hint style="info" %}
Deprecated. Use [storage\_write](/liquid/tags/storage_write.md) with multipart parameter.
{% endhint %}

With multipart paramter you can upload your form attachments to storage.

```javascript
{% json upload_options %}
  {
    "fileName": "user_provided_photo.png",
    "multipart": {{request.files.["user-file"] | default: "" | json }},
    "public": false
  }
{% endjson %}

{% assign file_result = upload_options | file %}

{% json ftp_params %}
  {
    "mode": "upload",
    "host": "datajet-app.com",
    "user": "user@datajet-app.com"",
    "password": "pass123",
    "file": {{file_result.fileName | json }},
    "fileName": "ftp_file.png",
    "path": "/",
    "port": 21
  }
{% endjson %}
{% assign ftp_result = ftp_params | ftp %}
```

In above code we define some upload\_options. Parameters are:

* `fileName` - under this name your file will be saved in the storage
* `multipart` - this parameter tells that the expected file source is multipart. For files with url source it would be replaced with url and for content files with `content`.
* `public` - optional parameter. When set to true your result object will contain an url to your file. With this url everyone can access your upload.

Our `file_result` will contain `fileName` parameter (if upload is successful). This is next used in `ftp` filter options to specify file in your storage and upload it to an FTP.


---

# 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://docs.datajet-app.com/liquid/filters/file/multipart.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.
