1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 14:16:46 +02:00

Fixed download controller and errors with publicfielddefinitions

This commit is contained in:
trendschau
2021-11-20 14:23:29 +01:00
parent 6e1e2d1e34
commit 63c8b204d7
5 changed files with 14 additions and 8 deletions

View File

@@ -137,7 +137,7 @@ class ControllerDownload extends ControllerShared
header_remove("Last-Modified");
header('Cache-Control: max-age=0, no-cache, no-store, must-revalidate');
header('Cache-Control: private', false); # required for some browsers
header('Content-Type: application/zip');
header('Content-Type: ' . $mimetype);
header('Content-Disposition: attachment; filename="'.basename($file).'";'); # Make the browser display the Save As dialog
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($file));