1

I'm using File (Field) Paths to change filenames of uploaded files. There's a nice option to enable file description. I want the files to be renamed according to that file description (I tried to find a replacement pattern for this; there does not seem to be one). In terms of doing so the file description field should be a required field, which is not allowed to be empty.

Any ideas how to accomplish this?

1
  • You've already mention 2 parts you need to solve: you need a token that supports the file's description field & you need that field to be required. The token API gets you the first, hook_form_alter() in a custom module can get you the 2nd.
    – Shawn Conn
    Commented Sep 4, 2015 at 4:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.