New Tool Radar

Local AI

How to Fix an AnythingLLM Document Upload That Fails

Get a document into AnythingLLM when the upload fails, from the file itself to the workspace.

Schematic illustration with three step boxes: Check the file; Try a different upload path; Check the workspace.

AnythingLLM turns uploaded documents into embeddings for chat, and an upload can fail on the file, the workspace, or the embedding step. The fix is to check the file first, then the upload path, then the workspace settings. This guide works through them in order.

Before you start

  • AnythingLLM installed, Desktop or Docker, with a workspace open.
  • A document to upload, for example a PDF or a text file.
  • Access to the AnythingLLM logs if you run Docker.

Check the file itself

Check the file size, the format and whether it opens on your own machine. A very large file, a scanned PDF with no text layer, or a corrupt file will fail at the embedding step even if the upload itself succeeds. Try a small plain text file first: if that works, the problem is the file, not the server.

Try a different upload path

Upload the same file again, then try dragging it into the workspace instead, and if you run Docker, check that the storage folder is mounted and writable. In Docker, AnythingLLM stores uploads under the mounted STORAGE_DIR; a missing or read-only mount makes every upload fail.

Check the workspace and the logs

Open the workspace settings and confirm an embeddings model is set, then check the logs for the upload error. If the log shows an embeddings error, the upload worked and the embedding step failed, which is a different fix: pick a working embeddings model and try again.

Worked example

Worked example: a 12 MB PDF fails to upload. A 2 KB text file uploads fine, which points at the PDF. Check whether the PDF is a scanned image with no text: if it is, run OCR on it first, or upload a text version, and the upload should succeed.

Expected result

UNTESTED in this guide: no document was uploaded while writing it. The expected result is that a small text file uploads and embeds, and the failing document succeeds once its own problem is fixed.

Limitations

An upload that succeeds but never becomes searchable usually means the embedding step failed, not the upload. Check the workspace embeddings setting before re-uploading the same file.

Sources

See all