Open andrebk opened 6 years ago
Optional stackexchange: https://stackoverflow.com/questions/20080341/correct-php-headers-for-pdf-file-download
Apparantly, readfile() has poor performance, as the entire file is buffered in RAM on the server before being sent (?)
Something similar is already done in application/models/DbTable/Files.php->downloadFile($fid)
Currently the archive provides a direct link to the file, which is then opened in the same tab. This means that the title of the tab is the very ugly UUID of the file. Instead the request should be handled by the back-end, allowing it to set the
See https://serverfault.com/questions/316814/php-serve-a-file-for-download-without-providing-the-direct-link, which also has a nice .htaccess trick that might be useful for #30.