diff --git a/webform.module b/webform.module
index 7257223..0068c9d 100644
--- a/webform.module
+++ b/webform.module
@@ -730,7 +730,7 @@ function webform_element_info() {
  * Implements hook_webform_component_info().
  */
 function webform_webform_component_info() {
-  return array(
+  $return = array(
     'date' => array(
       'label' => t('Date'),
       'description' => t('Presents month, day, and year fields.'),
@@ -761,16 +761,6 @@ function webform_webform_component_info() {
       ),
       'file' => 'components/fieldset.inc',
     ),
-    'file' => array(
-      'label' => t('File'),
-      'description' => t('Allow users to upload files of configurable types.'),
-      'features' => array(
-        'conditional' => FALSE,
-        'default_value' => FALSE,
-        'attachment' => TRUE,
-      ),
-      'file' => 'components/file.inc',
-    ),
     'grid' => array(
       'label' => t('Grid'),
       'description' => t('Allows creation of grid questions, denoted by radio buttons.'),
@@ -866,6 +856,22 @@ function webform_webform_component_info() {
       'file' => 'components/time.inc',
     ),
   );
+
+  
+  if (module_exists('file')) {
+    $return['file'] = array(
+      'label' => t('File'),
+      'description' => t('Allow users to upload files of configurable types.'),
+      'features' => array(
+        'conditional' => FALSE,
+        'default_value' => FALSE,
+        'attachment' => TRUE,
+      ),
+      'file' => 'components/file.inc',
+    );
+  }
+
+  return $return;
 }
 
 /**
