Drupal 6 如何在Drupal上上载文件时添加额外的提交处理程序

Drupal 6 如何在Drupal上上载文件时添加额外的提交处理程序,drupal-6,Drupal 6,我目前正在使用Drupal6,并且我一直在开发一个自定义模块,该模块正在为站点执行特定的功能。目前,我还有1项功能需要修复。当一个文件上传到节点时,我想做其他事情。我的问题是,我怎样才能捕捉到那个事件?就像 when a file is uploaded { read the file print an additional info to the field (a cck field) } 使用filefield的hook\u file\u update()。 请看这里:

我目前正在使用Drupal6,并且我一直在开发一个自定义模块,该模块正在为站点执行特定的功能。目前,我还有1项功能需要修复。当一个文件上传到节点时,我想做其他事情。我的问题是,我怎样才能捕捉到那个事件?就像

when a file is uploaded {
   read the file
   print an additional info to the field (a cck field)
}

使用filefield的hook\u file\u update()。 请看这里: