1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 09:36:29 +02:00

Fix: Set the appropriate filename for zipnload files

Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
Marco Dickert
2020-05-12 15:36:16 +02:00
parent 7cfff04add
commit d171d66fe4
3 changed files with 3 additions and 5 deletions

View File

@@ -1764,7 +1764,6 @@ function IFM(params) {
* @param object options - options for changing the directory
*/
this.changeDirectory = function( newdir, options ) {
console.log("Change dir to: |"+newdir+"|");
options = options || {};
config = { absolute: false, pushState: true };
jQuery.extend( config, options );
@@ -3915,7 +3914,7 @@ f00bar;
else
$d['filename'] = basename( getcwd() );
}
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip" ) );
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip", "forceDL" => true ) );
} catch ( Exception $e ) {
echo $this->l['error'] . " " . $e->getMessage();
} finally {

View File

@@ -1764,7 +1764,6 @@ function IFM(params) {
* @param object options - options for changing the directory
*/
this.changeDirectory = function( newdir, options ) {
console.log("Change dir to: |"+newdir+"|");
options = options || {};
config = { absolute: false, pushState: true };
jQuery.extend( config, options );
@@ -3915,7 +3914,7 @@ f00bar;
else
$d['filename'] = basename( getcwd() );
}
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip" ) );
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip", "forceDL" => true ) );
} catch ( Exception $e ) {
echo $this->l['error'] . " " . $e->getMessage();
} finally {

View File

@@ -838,7 +838,7 @@ f00bar;
else
$d['filename'] = basename( getcwd() );
}
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip" ) );
$this->fileDownload( array( "file" => $dfile, "name" => $d['filename'] . ".zip", "forceDL" => true ) );
} catch ( Exception $e ) {
echo $this->l['error'] . " " . $e->getMessage();
} finally {