What should I do if my file exceeds the maximum size allowed for upload?

Last updated: April 29, 2025

If your file exceeds the upload size limit in Meilisearch Cloud, you can resolve this issue using the following methods:

1. Split your dataset

Divide your large file into smaller chunks that comply with the size restrictions. You can then:

  • Use the Meilisearch UI to upload these smaller chunks manually.

  • Or, interact with the Meilisearch API directly by sending smaller payloads to the /documents endpoint. For more information, refer to the API documentation.

2. Use Meilisearch SDKs

Leverage the addDocumentsInBatches method available in all Meilisearch SDKs to upload documents in batches.

3. Optimize the file

Ensure your file contains only the necessary data. Removing irrelevant fields reduces the size of your dataset. When a document field is missing from the list of searchable ,filterable, sortable, or displayed attributes, it might be best to remove it from the document.