Hi
Thanks for this great module
I am having a small problem.
I have uploaded a file e.g. update.exe file, it downloads properly in IE 8
But in Firefox 3, .htm is added as extension, so the downloaded filename becomes update.exe.htm
Regards
Ajay
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | filefield_private-709256-1-add-filename-to-url.patch | 849 bytes | alan d. |
Comments
Comment #1
dagmarI have tried this with Firefox 3.5.7 and the downloaded file extension is .exe
What version of windows and Direfox are you using?
Could you try with other browsers?
Comment #2
iajay commentedIt works in IE 8.
Firefox is 3.5.7 and windows 7 ultimate
Thanks for the reply
Regards
Ajay
Comment #3
alan d. commented@ajay What happens when you copy and paste the URL with "/test.exe" into the browser?
I just thinking that the browser may be trying to use the URL rather than the HTTP headers to decide what the download should be. If this is the case, this will be a quick fix. The (untested) patch should update the URLs that are rendered to prevent this from happening.
Drupal also rewrites the file extension on certain files, you should have had a warning if this happened:
Which has these default settings / allowed extensions: jpg jpeg gif png txt html doc xls pdf ppt pps odt ods odp
e.g.
If you enable the core Upload module, you can enable additional extensions for each role:
www.example.com/admin/settings/uploads ( admin > site config > file uploads )
This should be a global Drupal file setting and not part of the Upload module, but that's another story....
If you look in the directory, the physical file will be something like "example.exe.txt" if this is the case.
Comment #4
hefox commentedI believe this is no longer relevant in 2.x branch so closing; re-open if want to fix it in 1.x or doesn't fix it.