I am looking for a way to rename files that are uploaded by users through a filefield. For example, rename user profile photos using uniqid
.
I found a good solution for D6 at "Drupal 6: How to Change Filename on Upload" but can't find anything for D7.
Another option is to use File (Field) Paths, but:
- The module causes warnings on my setup.
- Seems to be a bit of an overkill to install a general module for a very specific purpose.