Show currect filename when downloading files

This commit is contained in:
Robin Appelman 2011-04-26 15:01:16 +02:00
parent cb8c890594
commit 8a6edd4654
2 changed files with 2 additions and 1 deletions

View File

@ -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');

View File

@ -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( "" );
}