coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Danaldinho on November 08, 2008, 01:50:48 PM

Title: Deleted images from uploads folder
Post by: 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?

Or do they have to stay there?

Hope you understand

Thanks :)
Title: Re: Deleted images from uploads folder
Post by: Joachim Müller on November 08, 2008, 02:02:10 PM
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 (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#batch_add_pics):
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 (http://documentation.coppermine-gallery.net/en/uploading_batch-add.htm#batch_add_pics_what) 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.
Title: Re: Deleted images from uploads folder
Post by: Danaldinho on November 08, 2008, 02:07:33 PM
Thanks once again Joachim :)