Skip to content
Snippets Groups Projects
Commit ea36f8b4 authored by tbosviel's avatar tbosviel Committed by Chris Leppanen
Browse files

Issue #1402788 by tbosviel | Cottser: Added All files are imported as MIME...

Issue #1402788 by tbosviel | Cottser: Added All files are imported as MIME application/octet-stream.
parent 1d81fc80
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ function file_feeds_set_target($source, $entity, $target, $value) {
foreach ($value as $k => $v) {
if (!($v instanceof FeedsEnclosure)) {
if (is_string($v)) {
$value[$k] = new FeedsEnclosure($v, 'application/octet-stream');
$value[$k] = new FeedsEnclosure($v, file_get_mimetype($v));
}
else {
unset($value[$k]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment