Closed (fixed)
Project:
Filebrowser
Version:
6.x-2.0-rc5
Component:
Directory Listing Pages
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Dec 2008 at 11:37 UTC
Updated:
15 Apr 2009 at 17:40 UTC
Downloading bug report:
after enabling option "Enable private downloads" files in directories protected with apache rules:
Order allow,deny
deny from all
are having problem with download. after request to download file, file downloads correctly but its name is weird, not the same as in browser. It seems that browser assign name file by its own decision, that mean server does not provide any name for file.
Comments
Comment #1
stoneforger commentedFirst of all check you have fileinfo installed and working, you might need to relocate or copy your magic.mime file.
Also, in the module the header line
header("Content-Disposition: attachment;");
should be changed to something like
header("Content-Disposition: attachment; filename=\"" . $path_parts[count($path_parts)-1], ."\";");
as described in rfc2183 . At least that's what works for me like a charm.
Comment #2
zewa commentedyep stoneforger your recommended solution is exactly what i did
after having the same problem and it solved it too.
Greetings
Zewa
Comment #3
Yoran commentedI changed the way of generating the download header, should be ok know (dev version)
Comment #4
Yoran commentedComment #5
Yoran commented