Hi,

We want to have a custom flag for photos uploaded via filefiled. (Approved: yes, no).

Our original thought was to use the status field as it is already there. We want to set it to something like 999 when a file is uploaded, and then to 1 (normal setting) when the photo is "approved". If this is possible, then it is really easy for our theme to just filter out photos with the status of 999.

I can't seem to find any kind of hook that will let me control this. I can see that filefield is using AHAH to initially upload the photos with the status set as 0 (temporary file.) Then, somewhere after the node is submitted, the status is being changed to 1. Ideally, I want to hook in at the same place and control the status, (or change it just after the 1 is set.)

Any thoughts?

Comments

quicksketch’s picture

Category: task » support
Status: Active » Closed (fixed)

You should use Flag module and put the flag on the node (rather than the file). The "status" field in the files table was made for internal purposes only. Closing this issue due to its age.