[GH-ISSUE #644] [BUG]: Uploaded file name does not match the displayed file name after the upload #368

Closed
opened 2026-02-22 18:19:09 -05:00 by yindo · 8 comments
Owner

Originally created by @huicewang on GitHub (Jan 24, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/644

Originally assigned to: @shatfield4 on GitHub.

Description

A problem has been identified where the uploaded file name does not match the displayed file name after the upload, as shown in the image: this causes the file to be unfindable during embedding.
image

Originally created by @huicewang on GitHub (Jan 24, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/644 Originally assigned to: @shatfield4 on GitHub. ### Description A problem has been identified where the uploaded file name does not match the displayed file name after the upload, as shown in the image: this causes the file to be unfindable during embedding. ![image](https://github.com/Mintplex-Labs/anything-llm/assets/19237481/d0e74c95-d2bb-499f-ac48-0860cc85fffe)
yindo added the wontfix label 2026-02-22 18:19:09 -05:00
yindo closed this issue 2026-02-22 18:19:09 -05:00
Author
Owner

@shatfield4 commented on GitHub (Jan 24, 2024):

Are you able to provide me with the pdf file you are using here? Through my testing I cannot replicate this bug.

@shatfield4 commented on GitHub (Jan 24, 2024): Are you able to provide me with the pdf file you are using here? Through my testing I cannot replicate this bug.
Author
Owner

@huicewang commented on GitHub (Jan 24, 2024):

深圳市艾比森光电股份有限公司发展战略规划纲要.pdf
Please test this file to upload

@huicewang commented on GitHub (Jan 24, 2024): [深圳市艾比森光电股份有限公司发展战略规划纲要.pdf](https://github.com/Mintplex-Labs/anything-llm/files/14045008/default.pdf) Please test this file to upload
Author
Owner

@timothycarambat commented on GitHub (Jan 24, 2024):

Thanks for the file! After downloading and uploading to anythingllm, i cannot replicate this error. Do you know what commit or docker image tag you are on? We fixed this issues (or very similar) a long time ago.

Screen Shot 2024-01-24 at 4 04 46 PM
@timothycarambat commented on GitHub (Jan 24, 2024): Thanks for the file! After downloading and uploading to anythingllm, i cannot replicate this error. Do you know what commit or docker image tag you are on? We fixed this issues (or very similar) a long time ago. <img width="322" alt="Screen Shot 2024-01-24 at 4 04 46 PM" src="https://github.com/Mintplex-Labs/anything-llm/assets/16845892/d96e2954-3932-4db9-995c-3c48af562a07">
Author
Owner

@huicewang commented on GitHub (Jan 24, 2024):

I am deploying in a local Windows environment, and I have obtained the latest code.

@huicewang commented on GitHub (Jan 24, 2024): I am deploying in a local Windows environment, and I have obtained the latest code.
Author
Owner

@timothycarambat commented on GitHub (Jan 24, 2024):

Using Docker? Can you tail the output of the collector process? It will report the parsed filename in the process logs, which can help debug what is going on.

@timothycarambat commented on GitHub (Jan 24, 2024): Using Docker? Can you tail the output of the `collector` process? It will report the parsed filename in the process logs, which can help debug what is going on.
Author
Owner

@huicewang commented on GitHub (Jan 24, 2024):

image
the output of the collector is ok.
image
Please test this file
接口性能-自动化测试的根基--HTTP协议.pdf

@huicewang commented on GitHub (Jan 24, 2024): ![image](https://github.com/Mintplex-Labs/anything-llm/assets/19237481/f36ef28d-fe0d-4be9-ac1d-e0451d224a5b) the output of the collector is ok. ![image](https://github.com/Mintplex-Labs/anything-llm/assets/19237481/54ea8c3d-73b7-48bb-96a7-9c12bdb11dcb) Please test this file [接口性能-自动化测试的根基--HTTP协议.pdf](https://github.com/Mintplex-Labs/anything-llm/files/14045225/-.--HTTP.pdf)
Author
Owner

@timothycarambat commented on GitHub (Jan 24, 2024):

@huicewang This is because the data shown in the UI is parsed from the file metadata, not the file name (because they can be the same). It is highly likely the file with a as the name has that as the title of the PDF - for some reason.

Attached is metadata of the above file, you can see the title is set to the value in the UI.

Screen Shot 2024-01-24 at 4 27 50 PM
@timothycarambat commented on GitHub (Jan 24, 2024): @huicewang This is because the data shown in the UI is parsed from the file metadata, not the file name (because they can be the same). It is highly likely the file with `a` as the name has that as the `title` of the PDF - for some reason. Attached is metadata of the above file, you can see the title is set to the value in the UI. <img width="393" alt="Screen Shot 2024-01-24 at 4 27 50 PM" src="https://github.com/Mintplex-Labs/anything-llm/assets/16845892/d665d197-6eb1-4334-bdea-98759a71f374">
Author
Owner

@timothycarambat commented on GitHub (Jan 24, 2024):

Going to close as wontfix, because this is the intended effect!
https://github.com/Mintplex-Labs/anything-llm/blob/978cad476ad7a4732cc8260d92ba5d1e1de68645/collector/processSingleFile/convert/asPDF.js#L43

It falls back to the file name if no title is defined, however if the file metadata has it defined, we prefer to use it.

@timothycarambat commented on GitHub (Jan 24, 2024): Going to close as wontfix, because this is the intended effect! https://github.com/Mintplex-Labs/anything-llm/blob/978cad476ad7a4732cc8260d92ba5d1e1de68645/collector/processSingleFile/convert/asPDF.js#L43 It falls back to the file name if no title is defined, however if the file metadata has it defined, we prefer to use it.
yindo changed title from [BUG]: Uploaded file name does not match the displayed file name after the upload to [GH-ISSUE #644] [BUG]: Uploaded file name does not match the displayed file name after the upload 2026-06-05 14:34:56 -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#368