Hello,

I just found drupal and looks very promising. I am looking to use much of the blogging, cck, views, and filefield for a new website for my music school.

I was looking at GetID3 and they have a demo of re-writing the ID3 tags for audio files.

I was thinking if this was possible.

To have existing files on a hosting account and instead of changing all the tags to correctly show school, change cover art, etc... That I could have that done when the file is requested in a filefield link that would call a external script to run the hard coded changes prior to the user actually downloading the file so the changes would be on the fly.

Why, because most times such as class name or cover art will change for different classses, but the file maybe the same but I would like to identify each file as to that class.

I hope my english is good enough from everyone to understand and I am sorry if it is not good.

Any discussion or examples would be very helpful.

Thank you.

Comments

quicksketch’s picture

You can do this by making the changes on hook_file_insert() or on hook_nodeapi($op == 'presave'). I don't direct users on how to write custom code in the issue queue, but such operations are definitely possible. Take a look at FileField Meta (included with FileField) which reads in getID3 information when new files are uploaded. You'd do the same thing, only instead of just reading the information, you'd also update it.

mottboy’s picture

I see. I'll see what I can do. Thank you.

quicksketch’s picture

Status: Active » Closed (fixed)