> For the complete documentation index, see [llms.txt](https://docs.discloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discloud.com/en/faq/troubleshooting-solutions/bot-too-heavy.md).

# Bot Too Heavy

What to do when your application's .zip file is too big to upload.

If the upload fails because the file is too big, the problem is almost always **what's inside the `.zip`**: it carries files Discloud doesn't need to receive.

***

## 🗑️ Leave out what doesn't need to be uploaded

{% hint style="warning" %}

#### **Dependency folders**

Folders like `node_modules`, `venv` or `.venv` are usually the biggest part of a project. Don't upload them: your dependencies are listed in your language's dependency file (for example, `package.json` or `requirements.txt`).
{% endhint %}

{% hint style="warning" %}

#### **Build output**

If you use the `BUILD` command in your [`discloud.config`](https://docs.discloud.com/en/configurations/discloud.config.md), Discloud runs the build during deployment. In that case, don't upload the folder generated by your local build.
{% endhint %}

{% hint style="warning" %}

#### **Large media files**

Large videos, images and audio files make the `.zip` heavy. Keep them in an external storage service and load them by URL.
{% endhint %}

{% hint style="warning" %}

#### **Version control and cache files**

Folders like `.git` and `__pycache__` aren't needed to run the application.
{% endhint %}

{% hint style="info" %}
Use a [`.discloudignore`](https://docs.discloud.com/en/configurations/.discloudignore.md) file so these files are left out automatically. See also [**How to compress?**](https://docs.discloud.com/en/faq/general-questions/how-to-compress.md).
{% endhint %}

***

## 🔀 Use another upload method

When you upload with the **Discord Bot**, the `.zip` is a message attachment, so it also has to fit within **Discord's attachment limit**. For bigger projects, prefer one of these methods:

* 🖥️ [**Dashboard**](https://docs.discloud.com/en/deployment-methods/dashboard.md)
* ⌨️ [**CLI**](https://docs.discloud.com/en/deployment-methods/cli.md)
* 🟦 [**VS Code Extension**](https://docs.discloud.com/en/deployment-methods/visual-studio-code.md)

***

## ❓ Still need help?

See [**Troubleshooting Solutions**](https://docs.discloud.com/en/faq/troubleshooting-solutions.md) or join our [**Discord Server**](https://discord.discloudbot.com/) for support.
