We have thousands of files to store in Azure blob storage. These files could be of any type, but PDF files, images, and Excel are the most common. With the URI of the blob in an anchor tag, a user of our system can download a file directly from Azure to the user's computer. All is good.
We would like to have the blob name be the name of the file itself, so when the user downloads the file, the original filename is intact. However, we must account for inevitable filename collisions in the Container. Using GUIDs for the blob name is a workable solution, but when the user clicks to download the file, they will get a filename as the GUID blob name (vs. the original filename).
Is there a way to use a GUID for the blob name, but when the user clicks to download the file, the returned file has the original filename? I realize we can download the file to our server and stream a properly named file to the user, but we are trying to keep the load off our web server for file downloads.
So is there a configuration setting with a blob that would enable the file to be returned with the proper filename? We can set a MIME type for a blob, and we were looking for a similar setting for the filename part.