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:
@@ -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 {
|
||||
|
3
ifm.php
3
ifm.php
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user