Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Force an archive name for downloading multiple nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 7, 2013
1 parent d9fecb0 commit e5c07e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -234,6 +234,9 @@ public function switchAction($action, $httpVars, $fileVars)
if(!$zipFile) throw new AJXP_Exception("Error while compressing");
register_shutdown_function("unlink", $file);
$localName = ($base==""?"Files":$base).".zip";
if(isSet($httpVars["archive_name"])){
$localName = AJXP_Utils::decodeSecureMagic($httpVars["archive_name"]);
}
$this->readFile($file, "force-download", $localName, false, false, true);
} else {
$localName = "";
Expand Down

0 comments on commit e5c07e3

Please sign in to comment.