Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change file name  (Read 7800 times)

0 Members and 1 Guest are viewing this topic.

rg

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Change file name
« 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.
« Last Edit: December 16, 2004, 07:43:02 am by GauGau »
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Change file name
« Reply #1 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. :)
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

rg

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Change file name
« Reply #2 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.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Change file name
« Reply #3 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.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Change file name
« Reply #4 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)
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Change file name
« Reply #5 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.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Change file name
« Reply #6 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.
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Change file name
« Reply #7 on: October 22, 2003, 07:21:20 am »

Happy coding, DJMaze!  :)
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Change file name
« Reply #8 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
Logged

wormie_dk

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Posts: 73
Change file name
« Reply #9 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 ... ?
Logged

outpatient

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • My Family Album
Re: Change file name
« Reply #10 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  :-\\
« Last Edit: December 15, 2004, 01:09:34 am by outpatient »
Logged

Nibbler

  • Guest
Re: Change file name
« Reply #11 on: December 15, 2004, 05:26:00 pm »

This is already in the next version (1.4).
Logged

outpatient

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • My Family Album
Re: Change file name
« Reply #12 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.