Hi Mantainers,
I would like to ask a question refering the imagefield (5x.1.1).
Is it possible to rename the uploaded file?
At the moment imagefield just takes the given filename and uses it. The problem is when you download the images to your desktop (drag and drop) the image has only the file name. I would like that it has the name of the user who posted the image and maybe the name of the website. like: misterx-mysite.jpg. This would very good for people researching the web they allways know where the image is from.
Maybe we could youse some code from autonode title and use the same tokens.
Thanks for replying
Dirk
PS. I can help coding it. Just wanted to change some ideas first.
Comments
Comment #1
Waldemar commentedI would like to have this feature as well. It makes the filesystem much more organised. Any chance that this could be done? If there is no development time, I'd be happy to implement it, I just don't like patching unmaintained code by myself.
Comment #2
Bencoon commented(fixed typo)
I think this would be a great idea as well; particularly for those with galleries with heavy loads. An option to have uploaded files renamed, using tokens perhaps, thus minimizing the risk of overwriting a similarly-named image.
Comment #3
dopry commentedNope not implemented. If you write it, do it for DRUPAL-5--2 or HEAD.
Comment #4
smcguinness commentedIs this being written for 2? This would be fantastic.
Comment #5
snipe commentedHey guys i am working on the same thing
hope will sort it out in day or two
Comment #6
Serg_dj commentedTo rename file at upload time i use following code :
Comment #7
dopry commentednope.. not taking that patch... My stance is rename files before uploading them...
Comment #8
mr.alinaki commentedIs there any ideas how to implement this functionality without patch? It would be nice to see... Thanx.
Comment #9
ecrown commentedJust incase someone is still looking for this.
this module does exactly that http://drupal.org/project/uploadpath