--- image_fupload_imagefield.module	2009-05-01 12:43:41.302375000 +1000
+++ image_fupload_imagefield.module	2009-05-01 12:24:18.388231900 +1000
@@ -98,7 +98,10 @@ function image_fupload_imagefield_form_a
 
       $fupload_widget_weight = $field['widget']['weight'];
       $file_max_size = parse_size($field['widget']['max_filesize_per_file']); // maximal allowed file size (bytes)
-      drupal_add_js(theme('swfupload_settings', base_path() . $module_path, url('fupload/flash'), round($file_max_size/1024), ("*.". str_replace(" ", "; *.", $field['widget']['file_extensions'])), (!empty($user->sid) ? $user->sid : session_id()), $upload_limit_count, $node_type, $field_name, (!empty($field['required']) ? "true" : "false"), $field['widget']['fupload_mode'], $redirect_url), 'inline');
+      $extensions = !empty($field['widget']['file_extensions'])
+        ? "*.". str_replace(" ", "; *.", $field['widget']['file_extensions'])
+        : '*.jpg; *.jpeg; *.png; *.gif';
+      drupal_add_js(theme('swfupload_settings', base_path() . $module_path, url('fupload/flash'), round($file_max_size/1024), $extensions, (!empty($user->sid) ? $user->sid : session_id()), $upload_limit_count, $node_type, $field_name, (!empty($field['required']) ? "true" : "false"), $field['widget']['fupload_mode'], $redirect_url), 'inline');
       drupal_add_css($module_path .'/image_fupload-style.css', 'module', 'all', FALSE);
 
       // unvisible elements, will be written in cache
