# Upload scripts

So far, we’ve discussed editing scripts within Browser Mode. However, Middle can also support Upload Mode, which would allow you to upload package for each individual poll sync or action as needed.

Upload Mode can be useful if you are working with helper packages that are very large, such as Google. The Code Package section does not support very large files, while Upload Mode can handle a zipped file up to 250 MB, uncompressed.&#x20;

At the bottom of a script, you can click **Swap To Upload Mode** to access this feature.&#x20;

<figure><img src="https://lh5.googleusercontent.com/w68Z6lftmfCvTvTo68cbJRXmDEXy0kaELB6zaAZQsRRT0UI0IXlBU1-64q1sKBMb7lO9SaaxxOzPBwnjJdaon5p_3gHJ-Iaft7qYKn8l-P6gs3m2LjbM2xy7tuEMtqUfPpaaH9gqAygvDpMnqkkNL-VmCwkLSVf3Ch9tA_w8gIa78JDkkl7Xy3TdTWJWVg" alt=""><figcaption><p>Swap your app script to upload mode</p></figcaption></figure>

First, **download the compressed script package.** You can then modify the aspects of this folder:

* index.py (**do not edit**)
* app.py (edit this file with your Python script)

<figure><img src="https://lh5.googleusercontent.com/D7L6N7QoeJ2-VkkaOzcPQ9fX4qjcyAII_WmrCqqh5TN6RC_onV-MhAXH67lxEI5XNEZAgPWfu8f8fuVc5E-tWNKO7i1syIuUcJ8fJa0cXog6CGxds2PIc7-5MlvNN3WNak_sfGsQ1b215puZCyAU1BPLbGaYjwLl8arQIOtxQJ9MiYcjK4lnyIS-R8H_zg" alt=""><figcaption><p>Upload your script</p></figcaption></figure>

You can upload any additional files needed to this downloaded script package, and then re-upload the package as a zipped file.


---

# 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.middle.app/middle-docs/app-development/upload-scripts.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.
