I have a content type with a single valued taxonomy field and a file field. I'd like to use the value from the taxonomy field as part of the URL alias for the file.

I believe pathauto cannot handle this since the patterns are set outside of any node's context.

One thought I have is, during the presave for the content type, to set the URL alias for the file and incorporate the taxonomy field value. Currently I am not using a media browser, so a file wouldnt be associated with multiple nodes. One drawback would be inability to set aliases on existing files without resaving. Does that seem like a feasible approach?

Any thoughts or guidance would be greatly appreciated.

Thanks