Skip to content

Commit

Permalink
MDL-16012 improved mime handling in zip packer, this does not fix the…
Browse files Browse the repository at this point in the history
… linked bug though
  • Loading branch information
skodak committed Aug 12, 2008
1 parent 7e1825b commit b27c485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/packer/zip_packer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function archive_to_storage($files, $contextid, $filearea, $itemid, $file
$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);
}
Expand Down

0 comments on commit b27c485

Please sign in to comment.