Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Deleting files in the FTP upload directory  (Read 3156 times)

0 Members and 1 Guest are viewing this topic.

dakk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Deleting files in the FTP upload directory
« on: October 15, 2004, 08:47:16 am »

This is probably a stupid questionI was wondering, once I have moved the photos, that I had uploaded via FTP, into the albums I want to keep them in, is it ok to clean out my FTP folder? I read in the documentation not to delete from the FTP program, but to do it within Coppermine - but if I do that it will be erased from the data base, and I don't want to do that. the folder is just getting a bit full. LOL

Thanks
Dakk
« Last Edit: October 15, 2004, 10:03:07 pm by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Deleting files in the FTP upload directory
« Reply #1 on: October 15, 2004, 12:40:46 pm »

No.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Deleting files in the FTP upload directory
« Reply #2 on: October 15, 2004, 12:44:10 pm »

You're suppossed to ftp-upload pics into a sub-folder of your albums dir and then use coppermine's batch-add function. All this function does is create the intermediate size pics and thumbnails and creates records with pointers to those files in the database. The file initially uploaded by ftp doesn't get moved around, it stays where you uploaded it to. That's why it is recommended to mimick the structure of your categories and albums in your albums folder - the files in it are meant to stay.
There's no waste of space here, the full-size pics only exist once on your webserver. If you delete them, they're gone both on your webserver and in coppermine, leading to broken links inside coppermine.
Don't get paranoid with cleaning up your webspace. If you're concerned about webspace usage, resize the pics on your client before ftp-uploading them - that's the best hint I can give. Don't touch the files with ftp once they're in coppermine's database - as suggested in the docs.

Joachim
Logged

dakk

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Deleting files in the FTP upload directory
« Reply #3 on: October 15, 2004, 02:43:53 pm »

Thank you again for your quick response and easy to understand answer. :-) I will set up additional folders today. I was not really concerned about webspace as I already resize my photos. The folder was just looking a bit messy with lots of files.

Two questions down and one to go! I posted the last question on an existing thread.

Thanks again! You are definitely appreciated!

Dakk
Logged

lamama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 404
Re: Deleting files in the FTP upload directory
« Reply #4 on: November 04, 2004, 09:40:23 pm »

There is a quite simple :) way to re-arrange the files in your upload folder, if you can handle your database with phpMyAdmin manually.
Inside the *_pictures table of the coppermine database you can UPDATE the "filepath" values of the related pictures to the new path where you moved your files to.

But be careful with what you do. Make a backup of that table before changing anything.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.