From 8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 13:35:16 +0000 Subject: starting to update the file plugin to use the new html/css git-svn-id: http://code.elgg.org/elgg/trunk@7737 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/actions/download.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 mod/file/actions/download.php (limited to 'mod/file/actions/download.php') diff --git a/mod/file/actions/download.php b/mod/file/actions/download.php deleted file mode 100644 index 210735b74..000000000 --- a/mod/file/actions/download.php +++ /dev/null @@ -1,37 +0,0 @@ -getMimeType(); - if (!$mime) $mime = "application/octet-stream"; - - $filename = $file->originalfilename; - - // fix for IE https issue - header("Pragma: public"); - header("Content-type: $mime"); - if (strpos($mime, "image/")!==false) - header("Content-Disposition: inline; filename=\"$filename\""); - else - header("Content-Disposition: attachment; filename=\"$filename\""); - - $contents = $file->grabFile(); - $splitString = str_split($contents, 8192); - foreach($splitString as $chunk) - echo $chunk; - exit; - } - else - register_error(elgg_echo("file:downloadfailed")); -?> \ No newline at end of file -- cgit v1.2.3