I would like to be able to add a handful of custom attributes to a filefield. The attributes will be used by other modules to manage the uploaded files.
For example: Admin creates a filefield and adds a "youtube" attribute, meaning that videos uploaded to this filefield should get transferred to youtube.
I see that the database table
content_node_field (which contains a row for each defined field) has a
general_settings column that stores serialized data. I am assuming this is a good place to store my custom field attributes.
How to set/get custom attributes stored under the "general_settings" column?
Question #2: How to customize the filefield widget so that when admin defines a particular filefield, she can also select values for these custom attributes.
(I am using Drupal 6.)