Browse Source

Expand temp file MIME type sniffing.

pull/579/head
Jordan Dukart 10 years ago
parent
commit
f8864a2a76
  1. 3
      includes/utilities.inc

3
includes/utilities.inc

@ -72,6 +72,9 @@ function islandora_temp_file_entry($file_uri, $mime = NULL) {
if (isset($mime)) { if (isset($mime)) {
$file->filemime = $mime; $file->filemime = $mime;
} }
else {
$file->filemime = file_get_mimetype($file_uri);
}
} }
$file->status = 0; $file->status = 0;
return file_save($file); return file_save($file);

Loading…
Cancel
Save