? webform-file-required_mark.patch
Index: file.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/components/file.inc,v
retrieving revision 1.2.2.19.2.32
diff -u -r1.2.2.19.2.32 file.inc
--- file.inc	4 Mar 2009 05:05:18 -0000	1.2.2.19.2.32
+++ file.inc	11 Apr 2009 20:04:08 -0000
@@ -269,10 +269,16 @@
  *   An array of a form item to be displayed on the client-side webform.
  */
 function _webform_render_file($component) {
+  // Since #required cannot be used on the file upload field,
+  // manually add the typical notification mark (*) to the field's
+  // title. See includes/form.inc at theme_form_element().
+  $title = $component['name'];
+  if ($component['mandatory']) {
+    $title .= ' <span class="form-required" title="'. t('This field is required.') .'">*</span>';
+  }
   $form_item[$component['form_key']] = array(
     '#type'          => $component['type'],
-    '#title'         => $component['name'],
-    //'#required'      => $component['mandatory'], // Drupal core bug with required file uploads.
+    '#title'         => $title,
     '#description'   => _webform_filter_descriptions($component['extra']['description']),
     '#attributes'    => $component['extra']['attributes'],
     '#tree'          => FALSE, // file_check_upload assumes a flat $_FILES structure.
