1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Pulsante di download per i file

Aggiunto pulsante di download per i file, con scaricamento del contenuto con il nome originale.
This commit is contained in:
Thomas Zilio
2017-08-28 09:49:38 +02:00
parent d47fbd3fcc
commit f167ab1e47
4 changed files with 24 additions and 6 deletions

View File

@@ -227,6 +227,10 @@ if (!function_exists('force_download')) {
header('Content-Transfer-Encoding: binary');
if ($content) {
if (is_file($content)) {
$content = file_get_contents($content);
}
header('Content-Length: '.strlen($content));
}