Browse Source

Merge pull request #579 from jordandukart/7.x-ISLANDORA-1173

Expand temp file MIME type sniffing.
pull/580/head
William Panting 10 years ago
parent
commit
f2b4d90682
  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)) {
$file->filemime = $mime;
}
else {
$file->filemime = file_get_mimetype($file_uri);
}
}
$file->status = 0;
return file_save($file);

Loading…
Cancel
Save