Closed (fixed)
Project:
FileField
Version:
6.x-3.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2010 at 23:11 UTC
Updated:
20 Dec 2010 at 03:57 UTC
Currently I have an external command line program that parses information out of files uploaded to a CCK file field.
I do this in a custom module in hook_nodeapi() in the presave op.
Is there a way I can to this at the time of the upload instead of when saving the node (potentially so I can update some other fields of the node via AJAX/AHAH/jQuery).
I have looked for ways to hook into the upload process but have had no luck so far.
Comments
Comment #1
quicksketchLook at the filefield_meta.module for examples of how you can use hook_file_save() to react to new files being uploaded.
Comment #2
agileware commentedOf course, thanks!
And perfect timing too as I am just now coming back to this task.
Comment #4
agileware commentedJust as a note for others it seems to be hook_file_insert() instead of hook_file_save().