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: [Solved]: Can I delete the Pictures I have FTP to the temp directory.  (Read 3364 times)

0 Members and 1 Guest are viewing this topic.

dawg2kat

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
  • It's a Dawgz Life.

I Created a file structure in the Album directory as instructed. Once I have done the batch add of the files, can I delete the files from the temp dir so I don't have to look through so much each time I want to add more files to again batch upload to the database.
« Last Edit: July 11, 2008, 08:11:58 pm by Nibbler »
Logged
Dawg

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Can I delete the Pictures I have FTP to the temp directory.
« Reply #1 on: July 11, 2008, 01:30:49 am »

Once you have used, yes. They are going to erase itself time to time BTW.
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can I delete the Pictures I have FTP to the temp directory.
« Reply #2 on: July 11, 2008, 07:16:02 am »

No, that is wrong. The files don't get moved somewhere else - they remain where you uploaded them to in the first place. There is no temporary folder involved.
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Can I delete the Pictures I have FTP to the temp directory.
« Reply #3 on: July 11, 2008, 07:38:24 pm »

Quote
can I delete the files from the temp dir
I'm sorry,I thought so. I thought that was way that cpg works. I think I misunderstood something I read on the forum.

@dawg2kat: Sorry if I confused you.  :(
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

dawg2kat

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
  • It's a Dawgz Life.
Re: Can I delete the Pictures I have FTP to the temp directory.
« Reply #4 on: July 11, 2008, 07:45:47 pm »

Thanks for the input, I too thought it was a temp dir structure for the ftp upload and that they were moved to a different database after the batch add.
Now I wish I had set up the file structure a little different so it would more mirror the actual albums, some old dawgz just need to learn the new tricks.

Thanks again for your responses.
Logged
Dawg

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

OK, let me explain where a temporary folder is involved: inside the albums-folder, you'll find a sub-folder named "edit" - that's the only temporary folder coppermine is using. It is being used for internal purposes only: if you use http uploads and the user has already uploaded several pics, they go to that folder first. The user then has to assign the uploaded files to albums, which is the moment when the uploaded files get moved from the temporary folder to the actual sub-folders of the userpics folder. If he doesn't assign the uploaded files to albums (or something goes wrong), the temporary files remain in the edit-folder, where the garbage collection takes care of them from time to time and deletes older temporary files. This mechanism is necessary because the http upload mechanism can be tricky to handle, seen from the perspective of a programmer: al kind of weird things could happen (the files could be too large, there could be no more webspace left, the target folder might lack the needed write permissions for the script. Using the temporary folder for http uploads just makes coppermine's http upload mechanisms more reliable, which was the reason why it has been designed the way it is.
FTP uploads are a totally different animal: as the initial FTP upload isn't being performed by coppermine, but the user himself (using his FTP client), it's his task to make sure the files he tried to upload are actually there where they are expected. What the batch-add process does is adding the files that already are physically where you want them to be to the database. To make sure that you understand this concept: the database itself doesn't contain the files - think of it as a logical structure only, that keeps track of the physical location of the files and some other parameters (like dimensions, the album the file resides in etc.). Think of the database as a phone book that doesn't actually contain the people it lists, nor does it contain wires nor phones: all a phone book consists of are records that point to something in real life (a person's name & address & phone number).

I too thought it was a temp dir structure for the ftp upload and that they were moved to a different database after the batch add.
Now I wish I had set up the file structure a little different so it would more mirror the actual albums, some old dawgz just need to learn the new tricks.
This piece of advice has already been there all along the different versions of coppermine; from the docs:
Quote
Uploading pics by FTP / Batch-Add Pictures

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.

Marking thread as "solved".
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.