diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc
index 70314db..384a672 100644
--- a/core/modules/file/file.field.inc
+++ b/core/modules/file/file.field.inc
@@ -327,6 +327,10 @@ function file_field_formatter_info() {
       'label' => t('URL to file'),
       'field types' => array('file'),
     ),
+    'file_rss_enclosure' => array(
+      'label' => t('RSS enclosure'),
+      'field types' => array('file'),
+    ),
   );
 }
 
@@ -924,6 +928,24 @@ function file_field_formatter_view($entity_type, $entity, $field, $instance, $la
         );
       }
       break;
+      
+    case 'file_rss_enclosure':
+      // Add the first file as an enclosure to the RSS item. RSS allows only one
+      // enclosure per item. See: http://en.wikipedia.org/wiki/RSS_enclosure
+      foreach ($items as $item) {
+        if ($item['display']) {
+          $entity->rss_elements[] = array(
+            'key' => 'enclosure',
+            'attributes' => array(
+              'url' => file_create_url($item['uri']),
+              'length' => $item['filesize'],
+              'type' => $item['filemime'],
+            ),
+          );
+          break;
+        }
+      }
+      break;
   }
 
   return $element;
