View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011045 | mantisbt | attachments | public | 2009-10-15 04:01 | 2010-02-22 14:34 |
Reporter | mbellino | Assigned To | vboctor | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0rc2 | ||||
Target Version | 1.2.0 | Fixed in Version | 1.2.0 | ||
Summary | 0011045: Display of attached files | ||||
Description | I am having big troubles with attached files. If you click on the links (for example a jpg file of 194,228 bytes), a new page is created, but the content is unreadable by the navigator. This HTML page is 379'492 octets ! Which seems big when compared to the uploaded file size. The same behavior is seen under Internet Explorer or Firefox (last version), Safari, and iCab. Finally, if you right-click on the link of Mantis, and download it (Save as), there is no problem. The jpg is correctly created. Any idea? Workaround? Did you also have the same issue? | ||||
Tags | patch | ||||
I had the same issue, that was caused by PHP not finding the fileinfo database that is used by Mantis to find out file types since 1.2 RC2. I had to make a change in the file file_download.php, on line 129: $finfo = new finfo( FILEINFO_MIME, config_get( 'fileinfo_magic_db_file' ) ); I changed it to: $finfo = new finfo( FILEINFO_MIME ); And it worked. From the doc, if you do: finfo(mime, NULL), php will use the default fileinfo database, but I guess that the config_get( 'fileinfo_magic_db_file' ) sometimes does not return NULL when the config value fileinfo_magic_db_file is empty... |
|
The change on note 0011045:0023217 corrected the issue I am having described on 0011202:0024010 on issue 0011202. |
|
MantisBT: master-1.2.x 702001d6 2009-10-24 02:00 Details Diff |
Fixes 0011045: Display of attached files. |
Affected Issues 0011045 |
|
mod - file_download.php | Diff File | ||
MantisBT: master e6bc4638 2009-10-24 02:00 Details Diff |
Fixes 0011045: Display of attached files. |
Affected Issues 0011045 |
|
mod - file_download.php | Diff File |