Index: field_file.inc
===================================================================
--- field_file.inc	(revision 57)
+++ field_file.inc	(working copy)
@@ -63,6 +63,8 @@
  * are periodically cleaned. To make the file permanent file call
  * file_set_status() to change its status.
  *
+ * @param $field
+ *   An array of CCK field information for the field (from CCK's content_fields())
  * @param $source
  *   A string specifying the name of the upload field to save.
  * @param $validators
@@ -82,14 +84,14 @@
  * @return
  *   An array containing the file information, or 0 in the event of an error.
  */
-function field_file_save_upload($source, $validators = array(), $dest = FALSE, $replace = FILE_EXISTS_RENAME) {
+function field_file_save_upload($field, $source, $validators = array(), $dest = FALSE, $replace = FILE_EXISTS_RENAME) {
   if (!$file = file_save_upload($source, $validators, $dest, $replace)) {
     return 0;
   }
   // Let modules add additional properties to the yet barebone file object.
   foreach (module_implements('file_insert') as $module) {
     $function =  $module .'_file_insert';
-    $function($file);
+    $function($field, $file);
   }
   _field_file_cache($file); // cache the file in order to minimize load queries
   return (array)$file;
Index: filefield_meta/filefield_meta.module
===================================================================
--- filefield_meta/filefield_meta.module	(revision 57)
+++ filefield_meta/filefield_meta.module	(working copy)
@@ -16,7 +16,7 @@
 /**
  * Implementation of filefield's hook_file_insert().
  */
-function filefield_meta_file_insert($file) {
+function filefield_meta_file_insert($field, $file) {
   filefield_meta($file);
   $record = array_merge(array('fid' => $file->fid), $file->data);
   drupal_write_record('filefield_meta', $record);
Index: filefield_widget.inc
===================================================================
--- filefield_widget.inc	(revision 57)
+++ filefield_widget.inc	(working copy)
@@ -139,7 +139,7 @@
     return 0;
   }
 
-  if (!$file = field_file_save_upload($upload_name, $element['#upload_validators'], $dest)) {
+  if (!$file = field_file_save_upload($field_instance, $upload_name, $element['#upload_validators'], $dest)) {
     watchdog('imagefield', 'The file upload failed. %upload', array('%upload' => $upload_name));
     form_set_error($upload_name, t('The Image upload failed.'));
     return 0;
