[GH-ISSUE #1617] [BUG]: File upload dialog has 32k chars string length limit, preventing users from bulk-importing thousands of files #1051

Closed
opened 2026-02-22 18:22:54 -05:00 by yindo · 1 comment
Owner

Originally created by @shredEngineer on GitHub (Jun 6, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1617

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Hey!

I have about 1600 PDFs that I want to import with AnythingLLM. These files have long filenames, encoding the authors names and the full title of the document.

However, when selecting all those files in the import dialog, they are encoded in the filename input field as "doc_1.pdf" "doc_2.pdf" ….

This encoding quickly exceeds the apparent current limit of 32k chars for this field, causing the rest of the filenames to be cut off, not being able to upload all files at once.

I think it would be best to just swap the file selection dialog for something more scalable. I don't know much about JS, however, so I cannot make any suggestions. :/

Are there known steps to reproduce?

Just try to import MANY files (with long filenames).

I am using AnythingLLM v1.5.5 on Ubuntu 24.04.

Originally created by @shredEngineer on GitHub (Jun 6, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1617 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Hey! I have about 1600 PDFs that I want to import with AnythingLLM. These files have long filenames, encoding the authors names and the full title of the document. However, when selecting all those files in the import dialog, they are encoded in the filename input field as `"doc_1.pdf" "doc_2.pdf" …`. This encoding quickly exceeds the apparent current limit of 32k chars for this field, causing the rest of the filenames to be cut off, not being able to upload all files at once. I think it would be best to just swap the file selection dialog for something more scalable. I don't know much about JS, however, so I cannot make any suggestions. :/ ### Are there known steps to reproduce? Just try to import MANY files (with long filenames). I am using AnythingLLM v1.5.5 on Ubuntu 24.04.
yindo added the needs info / can't replicateinvestigating labels 2026-02-22 18:22:54 -05:00
yindo closed this issue 2026-02-22 18:22:54 -05:00
Author
Owner

@shatfield4 commented on GitHub (Jun 14, 2024):

I'm not sure what you mean by the "apparent current limit of 32k chars". When you are uploading your large amount of files what happens? Does it just hang on uploading forever? Are you saying the long names of all your files are 32k characters and this is causing the issue? If so please let me know how you came to this conclusion so we can track down where it is coming from and solve it.

@shatfield4 commented on GitHub (Jun 14, 2024): I'm not sure what you mean by the "apparent current limit of 32k chars". When you are uploading your large amount of files what happens? Does it just hang on uploading forever? Are you saying the long names of all your files are 32k characters and this is causing the issue? If so please let me know how you came to this conclusion so we can track down where it is coming from and solve it.
yindo changed title from [BUG]: File upload dialog has 32k chars string length limit, preventing users from bulk-importing thousands of files to [GH-ISSUE #1617] [BUG]: File upload dialog has 32k chars string length limit, preventing users from bulk-importing thousands of files 2026-06-05 14:38:43 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1051