summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mappers/file.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mappers/file.inc b/mappers/file.inc
index 63c1e2d..ce777ad 100644
--- a/mappers/file.inc
+++ b/mappers/file.inc
@@ -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]);