From: skodak Date: Tue, 12 Aug 2008 15:52:58 +0000 (+0000) Subject: MDL-16012 improved mime handling in zip packer, this does not fix the linked bug... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b27c485572aabdf7b14c87c4e5a9ad1237401ca1;p=moodle.git MDL-16012 improved mime handling in zip packer, this does not fix the linked bug though --- diff --git a/lib/packer/zip_packer.php b/lib/packer/zip_packer.php index 0704450efb..6fa7694cd6 100644 --- a/lib/packer/zip_packer.php +++ b/lib/packer/zip_packer.php @@ -40,6 +40,7 @@ class zip_packer extends file_packer { $file_record->filepath = $filepath; $file_record->filename = $filename; $file_record->userid = $userid; + $file_record->mimetype = 'application/zip'; $result = $fs->create_file_from_pathname($file_record, $tmpfile); }