Issue #1402788 by tbosviel | Cottser: Added All files are imported as MIME applicatio...
authortbosviel
Mon, 23 Jul 2012 02:40:05 +0000 (19:40 -0700)
committerChris Leppanen
Mon, 23 Jul 2012 02:40:05 +0000 (19:40 -0700)
mappers/file.inc

index 63c1e2d..ce777ad 100644 (file)
@@ -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]);