mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
change zip archive creation directory (#2650)
This commit is contained in:
@@ -179,7 +179,15 @@ class ApiOrderController extends BaseOrderController
|
||||
|
||||
set_time_limit(0);
|
||||
ignore_user_abort(true);
|
||||
$file = \set_export::build_zip($this->app, $token, $exportData, $token->getValue() . '.zip');
|
||||
|
||||
$tmpDownloadDir = \p4string::addEndSlash($this->app['tmp.download.path']);
|
||||
if(is_null($tmpDownloadDir)){
|
||||
$tmpDownloadDir = '';
|
||||
}
|
||||
|
||||
$zipFile = $tmpDownloadDir.'order_'.$token->getValue() . '.zip';
|
||||
|
||||
$file = \set_export::build_zip($this->app, $token, $exportData, $zipFile);
|
||||
|
||||
return $this->deliverFile($file, $exportName, DeliverDataInterface::DISPOSITION_INLINE, 'application/zip');
|
||||
}
|
||||
|
Reference in New Issue
Block a user