I recently upgraded Drupal from version 7.12 to 7.23. After the upgrade, I noticed that when downloading private files, I no longer get the correct filename when I select "Save As" in the browser.
These are the steps I follow:
- I upload a file ("testfile.pdf") in a file field for a node
- I view the node, right click the file and choose "Save As"
The filename in the download dialog (which should have been "testfile.pdf") now depends on the browser
- Chrome: download.pdf
- FF: [random string].pdf
- IE: [domain name].pdf
I am using private files to be able to restrict access to files. In the release notes for Drupal 7.22, I read that a "Content-Disposition" header was removed from private file downloads.
Could this be the reason that private files no longer retain the filename when downloading?