Download of PDF files does not work
|Reported by:||izzy||Owned by:||peca|
I uploaded a PDF file to the Downloader. If was saved fine (when I go to the server using ssh and check, the file still is intact). However, wen I click it in the downloader, it asks me (with the correct mimetype) to open it with the PDF viewer - but the PDF viewer just says "broken". Right-click, save as - asks me to save 3.htm and says type is HTML file.
Suggestion: You simply store the uploads as "numbers", i.e. the file names are just the internal ID used. Guess this is needed to reference them. But reference would also work if you keep at least the extension of the file, e.g. "3.pdf". This could avoid the problem. Not sure whether other extensions are affected as well - seems to work fine at least for *.exe when downloaded directly (left-click). But right-click, save as has the same problems here, since no extension is given (so the browser cannot determine the mime type). Just tested again: When I do not select to directly display it in the viewer (after a left click) but to save it to disk, the file is kept intact. Tested with Firefox on Windows and Linux.
I would like even more to see the filename when I visit the directory. On the command line, I cannot tell what file it is otherwise. To keep the reference easy, this could be achieved by either
- naming the file <id>-<original filename>
- saving the file as <id>/<original filename>
In both cases, the file extension would also be kept intact. But please count the download problem as the main issue, and the rest as nice-to-have ;)
Change History (17)
comment:1 in reply to: ↑ description ; follow-up: ↓ 2 Changed 7 years ago by peca
- Status changed from new to assigned
Changed 7 years ago by peca
comment:15 in reply to: ↑ 14 Changed 7 years ago by peca
- Resolution set to fixed
- Status changed from assigned to closed