...
Modern browsers require the following headers, which control different functions:
1 - Content-type
This tells the browser what mime-type your file is, and will control how the browser will interpret the download,
...
Info | ||
---|---|---|
| ||
If you want the browser to always just download the file don't specify the content-type, or make sure it's a type that is not associated with an application. |
2 - Content-disposition
This tells the browser what the desired filename is when you download, if you wish your file to be downloaded by its original filename instead of a UUID, you need to use this header as described in the HTTP spec.
...
Grab the resulting UUID and try and download it from a browser, http://cas.caringo.com/UUID
, you will see it recognizes the supplied filename.
...