Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents in Blob Storage Subfolders Do Not Open in PDF Viewer #2360

Open
UAQureshi opened this issue Feb 13, 2025 · 2 comments
Open

Documents in Blob Storage Subfolders Do Not Open in PDF Viewer #2360

UAQureshi opened this issue Feb 13, 2025 · 2 comments

Comments

@UAQureshi
Copy link

UAQureshi commented Feb 13, 2025

Image

When uploading documents to Azure Blob Storage using a folder prefix (e.g., myfolder/document_Test.pdf), the PDF viewer fails to open the file. The error message returned is:

Not Found
The requested URL was not found on the server.
If you entered the URL manually please check your spelling and try again.

Additionally, the Search results for these documents show fields like:

"imageEmbedding": null,
"category": null,
"sourcepage": "document_Test.pdf",
"sourcefile": null,
"oids": [],
"groups": []

Steps to reproduce:
1. Upload a PDF file to a Blob Storage container content, placing it in a subfolder (e.g., myfolder/document_Test.pdf).
2. Ask a question and Access the citation link to veiw PDF through the application’s PDF viewer.
3. Observe the “Not Found” error.

@pamelafox
Copy link
Collaborator

You're right, we do not have explicit handling of subfolders. For now, I would either:

  1. upload everything to the root folder
  2. Modify the code to include the folder in sourcepage (and adjust citation formats as needed)
  3. Store the folder name in category, and use that to construct the URL

Keep in mind the situation where two documents in two folders have same filename, and make sure your code accounts for that.

@cforce
Copy link
Contributor

cforce commented Feb 20, 2025

This would be of value for me as well +1 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants