4.7 Uploading pics by FTP / Batch-Add Pictures
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.
Important: do not create folders or upload to the
userpics- nor the
edit-folder by ftp: these folders are used by coppermine internally and mustn't be used for any other purpose! Folder names mustn't contain dots and it's even recommended not to use any special chars - only use a-z, numbers and maybe - or _. Make sure to upload in binary or auto-mode.
Once you have uploaded your photos by ftp, click on the Batch Add Pictures button. The batch-add is done in three steps:
- find the directory under which you have uploaded your photos. Select this directory by clicking on it.
- select the photos you wish to upload (by ticking them, the new pics are pre-selected, those that already are in your coppermine database are not selected) and the album you wish to insert them into. Click "Insert Selected Pictures" to start the batch-add process.
- CPG will then display the results of the batch-add (allow some time untill all results are being shown).
If the OK, DP, PB 'signs' does not appear click on the broken file to see any error message produced by PHP.
If your browser times out, hit the reload button.- OK : means that the file was succesfully added
- DP : means that the file is a duplicate and is already in the database
- PB : means that the file could not be added, check your configuration and the permission of directories where the files are located
- NA : means that you haven't selected an album the files should go to, hit 'back' and select an album. If you don't have an album create one first
Giving FTP-access to other users is a serious security threat, that's why batch-add is only available for the coppermine gallery admin.
Once files have been added to coppermine's database, make sure not to rename or delete them by ftp - use coppermine's admin menu to remove files instead, since this way they will be removed both from the file system
and the database.