Deleted images from uploads folder Deleted images from uploads folder
 

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]

Main Menu

Deleted images from uploads folder

Started by Danaldinho, November 08, 2008, 01:50:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Danaldinho

Hi, when you upload pics to the /albums/uploads folder and then batch add them to an album, ccan you delelte the pics from that folder then?

Or do they have to stay there?

Hope you understand

Thanks :)

Joachim Müller

Quote from: Danaldinho on November 08, 2008, 01:50:48 PM
Hi, when you upload pics to the /albums/uploads folder and then batch add them to an album, ccan you delelte the pics from that folder then?
No.

Quote from: Danaldinho on November 08, 2008, 01:50:48 PM
Or do they have to stay there?
Yes, they have to stay where they are.
From the docs:
QuoteOnce files have been added to coppermine's database, make sure that you never rename or delete them via ftp - use coppermine's admin menu options to remove or rename files, instead.
From the preliminary docs for cpg1.5.x that apply in this case as well:
QuoteWhen a file get's uploaded using your FTP app, Coppermine doesn't "know" where it is, so you have to tell the script the location to enable it to remember the location using the database. This is where the batch-add process comes into play. What the batch-add process does basically is: creating resized copies (thumbnails and intermediate images) of the original files you uploaded and then adding records into the database (one record per file you add) to be able to keep track where on the server's hard disk the file actually resides. With this being said it should be quite obvious: Coppermine doesn't move the files around - they remain where you uploaded them to in the first place.

That's why you should make up your mind in advance about the folder and file structure of your FTP uploads. They need to go into the albums folder, and it's advisable to create a clever structure of folders and sub-folders there.

It is recommended that the coppermine admin use ftp to upload multiple pics/files at a time. Use your ftp software to create sub-folders within your_coppermine_directory/albums/, where your ftp uploads can be saved. Though not mandatory, it's always a good idea to have a folder structure within the albums folder that reflects or mirrors your coppermine categories and albums.

Quote from: Danaldinho on November 08, 2008, 01:50:48 PM
Hope you understand
Yes, I do.

Danaldinho