Show currect filename when downloading files

remotes/origin/stable
Robin Appelman 14 years ago
parent cb8c890594
commit 8a6edd4654
  1. 1
      files/download.php
  2. 2
      lib/base.php

@ -44,6 +44,7 @@ if(!OC_FILESYSTEM::file_exists($filename)){
$ftype=OC_FILESYSTEM::getMimeType( $filename );
header('Content-Type:'.$ftype);
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');

@ -91,7 +91,7 @@ require_once('plugin.php');
$error=(count(OC_UTIL::checkServer())>0);
if(!$error){
if(!$error and OC_CONFIG::getValue('installed',false)){
OC_PLUGIN::loadPlugins( "" );
}

Loading…
Cancel
Save