Hey Aaron,

I want to extend the work in #825240's hook to include the $file variable. Do you foresee any problems with this?

Background:
We have a client who wants to take advantage of the new support for multiple filefields. They use media_mover and media_brightcove to send uploaded videos to brightcove and get the embed url back.

One problem is that on the brightcove all the uploaded files get the node title so for example they will have 4 videos of with the same title and no way to tell apart. Handing over the file info in the alter hook will allow us to change the title using the the file name.

CommentFileSizeAuthor
#1 media_brightcove-1073404.patch538 bytesjonskulski

Comments

jonskulski’s picture

StatusFileSize
new538 bytes

Here's the patch

jonskulski’s picture

Status: Active » Needs review

Setting to review.

joshk’s picture

Yeah, this would be niiiiice....