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: Can I move files from /userpics to folders of my choice?  (Read 2877 times)

0 Members and 1 Guest are viewing this topic.

todg

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 1
Can I move files from /userpics to folders of my choice?
« on: November 01, 2005, 07:24:45 am »

I just installed and setup Coppermine the other day, and have since uploaded 200 photos in 20 or so albums. My trouble is that I rushed in a little, and didn't read much of the doco first (..probably not alone there).  What I didn't read is that...

"It's recommended that the coppermine admin uses ftp to upload many pics in one go. Use your ftp software to create sub-folders within your_coppermine_directory/albums/, where your ftp uploads can go to. It's a good idea to have a folder structure within the albums folder that reflects your coppermine categories and albums, but it's not mandatory."

I uploaded these photos via the Coppermine upload feature, rather than ftp. So, having 200 photos (+ thumbnails) in the /userpics folder, is there a (relatively easy) way to move these into album folders of my making and fix the Coppermine references to them? is there an existing script/add-on or something which can do this?

As any users I set up will rarely be given access to upload their own images, this isn't a huge issue I s'pose. ?? It would just be preferable to have all my images in some logical sub-folders on the server.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Can I move files from /userpics to folders of my choice?
« Reply #1 on: November 01, 2005, 08:42:02 am »

afaik there is no mod readily available to do what you want. You will have to manually change all the filepaths in database to reflect your new directory structure. It would be kindof risky to do so. Before attempting any changes do make a backup of both albums directory and database.

If you want you can leave the already added 200 pictures to where it is and use batch add from now onwards.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 15 queries.