I have a situation where an application is saving attached documents to a directory with a unique name, so if I save "document.doc" it saves to disk as "ABCD1234".
I want to provide a link to this document, but if I use a normal HTML link I don't get the correct filename, and the browser doesn't know the filetype so struggles to understand what to do with the file.
I have the location and filename, and the original filename available to the jsp file, but don't have a clue where to start with providing a link to the original document. I've seen other websites do this by providing a link to a program, with a parameter and when that is clicked it responds with a popup to save the doc with its original filename.
Anyone got any ideas of how to get this working, or even if its a standard method, some search terms I can use to try and search for a solution.
I want to provide a link to this document, but if I use a normal HTML link I don't get the correct filename, and the browser doesn't know the filetype so struggles to understand what to do with the file.
I have the location and filename, and the original filename available to the jsp file, but don't have a clue where to start with providing a link to the original document. I've seen other websites do this by providing a link to a program, with a parameter and when that is clicked it responds with a popup to save the doc with its original filename.
Anyone got any ideas of how to get this working, or even if its a standard method, some search terms I can use to try and search for a solution.