Fix azione di gruppo allegati download file zip

This commit is contained in:
Matteo 2024-04-03 16:18:09 +02:00
parent d7822c33bf
commit 982829ca88
1 changed files with 3 additions and 3 deletions

View File

@ -197,10 +197,10 @@ elseif (filter('op') == 'download-zip-allegati') {
$src = basename($allegato->filepath);
$dst = basename($allegato->original_name);
$file = slashes($module->upload_directory.'/'.$src);
$dest = slashes($dir.'tmp/'.$dst);
$file_content = $allegato->get_contents();
$result = copy($file, $dest);
$dest = slashes($dir.'tmp/'.$dst);
file_put_contents($dest, $file_content);
}
// Creazione zip