Closed (fixed)
Project:
FileField
Version:
6.x-3.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2011 at 21:45 UTC
Updated:
21 Mar 2011 at 16:11 UTC
Our editors submit stories and attach an audio file with it. Their filename could be anything. What I want to do is change the filename to be unique and follow a strict naming convention, so that I can do various things with the file once it's on the server.
I tried using the presave $op in nodeapi to change the filename and filepath, but that didn't work. Is there a way to do this?
tl;dr:
If a user uploads a file named blahblahblah.mp3, I want to store it on the server as thisisthetitle_123.mp3. Is this possible? Much thanks!
Comments
Comment #1
jaxxed commentedCheck the filefield paths module:
http://drupal.org/project/filefield_paths
Comment #2
jaxxed commented