I want to rewrite the file name when a user uploads a file. How on earth do you do that?
There appears to be very little documentation on this, so I present to you my solution, and an explanation of how I figured this out. Hopefully this will help a stranded Drupaler out there.
The following code will rewrite an uploaded file's filename from to 1234567890_<timestamp>, where "1234567890" is the timestamp.
Insert this into a custom module:
Hi, I'm Wes Jones. I'm a freelance Web developer and designer from Rochester, NY, currently living in China. A few of my favorite things are Drupal, usability, and Mandarin Chinese.
© 2013. Powered by Drupal.