Index: webform_alt_ui.module
===================================================================
--- webform_alt_ui.module	(revision 38139)
+++ webform_alt_ui.module	(working copy)
@@ -68,7 +68,7 @@
   $items['node/%webform_menu/done']['page callback'] = '_webform_alt_ui_confirmation';
 }
 
-/*
+/**
  * The form_builder_positions form needs to be on the page but not within the
  * node edit form.
  */
@@ -144,14 +144,31 @@
   );
 }
 
-/*
+/**
  * Implements hook_element_info_alter();
  */
 function webform_alt_ui_element_info_alter(&$type) {
   $type['options']['#pre_render'][] = 'webform_alt_ui_pre_render_option';
 }
 
-/*
+/**
+ * Load a component file into memory.
+ *
+ * @param $form_state
+ *   $form_state from a form.
+ * @param $component_type
+ *   The string machine name of a component.
+ */
+function webform_alt_ui_component_include(&$form_state, $component_info) {
+  if (isset($component_info['file'])) {
+    $pathinfo = pathinfo($component_info['file']);
+    $basename = basename($pathinfo['basename'], '.' . $pathinfo['extension']);
+    $path = (!empty($pathinfo['dirname']) ? $pathinfo['dirname'] . '/' : '') . $basename;
+    form_load_include($form_state, $pathinfo['extension'], $component_info['module'], $path);
+  }
+}
+
+/**
  * Implements hook_form_alter().
  *
  * This form alter adds the fields and handling for the separate webform_configure_form
@@ -167,6 +184,16 @@
     form_load_include($form_state, 'inc', 'webform', 'includes/webform.pages');
     form_load_include($form_state, 'inc', 'webform', 'includes/webform.components');
 
+    // @see http://drupal.org/node/1332100 if a webform has a file field attahed
+    // then ajax actions like removing a file result in 
+    // PHP Fatal error:  Call to undefined function webform_expand_checkboxes()
+    // The webform patch from quicksketch doesn't seem to be enough, but using
+    // form_load_include() here seems to work.
+    $components = webform_components(TRUE);
+    foreach ($components as $component_type => $component) {
+      webform_alt_ui_component_include($form_state, $component);
+    }
+
     // Modify the form.
     _webform_alt_ui_horizontal_tabs($form, $form_state);
     _webform_alt_ui_webform_settings($form, $form_state);
