--- comment_upload.inc.orig	2010-01-11 09:07:16.000000000 +0300
+++ comment_upload.inc	2010-02-25 17:27:52.553032270 +0300
@@ -122,7 +122,11 @@
 
       // Process files
       foreach ($ffp['#files'] as &$file) {
-        module_invoke_all('filefield_paths_process_file', $file['new'], $file, $ffp['#settings'][$file['name']], $node, $update);
+        $hook = 'filefield_paths_process_file';
+        foreach (module_implements($hook) as $module) {
+          $function = $module .'_'. $hook;
+          $function($file['new'], $file, $ffp['#settings'][$file['name']], $node, $update);
+        }
       }
       break;
   }
