forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: rg on October 22, 2003, 01:45:09 am

Title: Change file name
Post by: rg on October 22, 2003, 01:45:09 am
Hey everyone,

I think a cool feature would be the ability to change the file names of pics which people upload, doing so through CPG itself, not chaning names by FTP and in databases manually.

Is this already possible?  Could it be?  ;-)

Thanks,
rg.
Title: Change file name
Post by: hyperion on October 22, 2003, 02:22:34 am
Would it satisfy you to name them to your specs during upload? Or do you wish to change them at any time?

One is easy, the other is not so easy. :)
Title: Change file name
Post by: rg on October 22, 2003, 04:37:08 am
I'm refering to changing the names of files that OTHER people (users) upload, so I suppose I really couldn't rename them "during upload."

thanks,
rg.
Title: Change file name
Post by: hyperion on October 22, 2003, 04:48:42 am
Yes, I know that you want to rename other user's uploaded photos.  I'm asking if you would want to be able to do this at any time, or if you have a naming schema in mind that could be done at upload.
Title: Change file name
Post by: DJMaze on October 22, 2003, 05:43:23 am
What about renaming the images to the loginname:

djmaze001.jpg
djmaze002.jpg
djmaze003.jpg
djmaze004.jpg

then each user has a max of 999 images well that should be enough.

Or just create a directory of the username NOT by id (and ofcourse change spaces inunderscores)
Title: Change file name
Post by: hyperion on October 22, 2003, 06:14:16 am
@DJMaze: Yes, that could be hacked into db_input.php in the picture upload section at the bottom.  The effort required would be light to moderate, depending on how complex you want to get.
Title: Change file name
Post by: DJMaze on October 22, 2003, 06:59:19 am
My post was ment as answer, maybe i had to write it in a different way hyperion :lol:

Well me gonna implement Username instead of ID as directory in CPG for Nuke after conversation with GTroll, because it's far much easier to use in FTP mode than stupid numbers.
Title: Change file name
Post by: hyperion on October 22, 2003, 07:21:20 am
Happy coding, DJMaze!  :)
Title: Change file name
Post by: Joachim Müller on October 22, 2003, 08:28:16 am
I suggest this is a feature request for the util.php (resize pictures) to be able to rename any uploaded file (although I don't see the reason why someone would want to do this). Wormie?

GauGau
Title: Change file name
Post by: wormie_dk on October 22, 2003, 04:45:43 pm
I don't really see why you would like to rename pics, but how would you like it to work?

Would you like to be able to name each single file or should coppermine rename the files in a particular way e.g. pic0001, pic0002, pic0003 ... ?
Title: Re: Change file name
Post by: outpatient on December 15, 2004, 12:56:48 am
If anyone could tell me if this mod is available or an easy way for a rookie to do this I'd really appreciate it! I have videos uploaded in my site but never really bothered with customized thumbnails ... until now...

The problem is some of the files have filenames that wont work with the thumbs! files with characters in the name.. or .WMV instead of .wmv

They just wont work.  I cant rename the file because CPG wont recognize it... and I *really* dont want to delete all of them and upload them again with the correct filename.  Not only would it be a pain but I'd loose the "viewed" count!

Please let me know if there is a way to edit individual file names with CPG because it's been driving me crazy!! Thanks!!  ;D

ps. I now know I should be more careful with the naming of the files (no spaces, special characters or uppercases from now on!) but that really doesnt help with the files that have been there for months  :-\\
Title: Re: Change file name
Post by: Nibbler on December 15, 2004, 05:26:00 pm
This is already in the next version (1.4).
Title: Re: Change file name
Post by: outpatient on December 15, 2004, 06:15:28 pm
great! Thank you!

I can't wait for the stable version of 1.4 to come out!