coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: magic.m on October 31, 2004, 11:20:00 AM

Title: to modify the noun of the file jpg on the ftp
Post by: magic.m on October 31, 2004, 11:20:00 AM
Hello!  this text is translated automatically by a translator. I hope that it will be comprehensible.
I would like to know if it is possible to re-elect by ftp the name of an image deposited by a user (in the file userpics thus) without losing the bond towards the image on the photo gallery? As I think that that is not possible, how to make, most simply possible, to obtain this result?


Merci .
Title: Re: to modify the noun of the file jpg on the ftp
Post by: Joachim Müller on October 31, 2004, 11:57:37 AM
Renaming a file is not possible with any tool within coppermine once it exists in coppermine. If you must edit it, you will have to do so both in your database (using a tool like phpMyAdmin) and in your file/folder structure on your webserver (using your ftp app). This is not recommended though and unnecessary imo, as filenames don't matter that much and are hardly viewed (as you are suppossed to use title and caption in coppermine).
Why on earth do you want to do that?

Joachim
Title: Re: to modify the noun of the file jpg on the ftp
Post by: magic.m on October 31, 2004, 01:22:13 PM
why?
because certain user uses accents or many titles of files very long I like the things "clear and arranged". I found, I in parallel changed the name of the fichier.jpg in the base of data and the repertory.  thank you.

perhaps exists T-it an option to prevent the users from using the accents or names too long?
Title: Re: to modify the noun of the file jpg on the ftp
Post by: Joachim Müller on October 31, 2004, 02:17:54 PM
coppermine config: edit the field "Characters forbidden in filenames" and add "áàâéèêíìîóòôúùûÁÀÂÉÈÊÍÌÎÓÒÔÚÙÛäöüÄÖÜñÑ" and so on to the list that already exists in this field.

Joachim
Title: Re: to modify the noun of the file jpg on the ftp
Post by: magic.m on October 31, 2004, 05:00:45 PM
merci !