Documents in Blob Storage Subfolders Do Not Open in PDF Viewer
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.
You're right, we do not have explicit handling of subfolders. For now, I would either:
- upload everything to the root folder
- Modify the code to include the folder in sourcepage (and adjust citation formats as needed)
- 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.
This would be of value for me as well +1 :-)
yes would be a great addition if subfolders would also work!