Ignore certain file types Ignore certain file types
 

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

Main Menu

Ignore certain file types

Started by pols1337, March 13, 2013, 02:22:13 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

pols1337

Hi, quick question: is there a way, when using the Admin's batch upload tool, to skip over or ignore certain file types? 

For example, when I upload my folders using FTP, those folders usually contain some trash files like picasa.ini, thumbs.db, and some about.txt text files for my own personal use.  When I use the batch upload, CPG wants to add those miscellaneous file types to my album.  Although I can manually un-check those particular files from being added, it gets very tiring after awhile.  Thus, is there a way for Coppermine to intelligently ignore those files?

pols1337

By the way, yes, I've gone to look at the Config > File Settings > Allowed file types

Unfortunately, I see no way to tell Coppermine to skip certain files like picasa.ini and thumbs.db

Αndré

They'll be skipped automatically. Instead of the tick icon you'll get a radar icon with a title like
QuoteOnly files with the following extensions are accepted: jpg/jpeg/gif/png/psd/asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp3/midi/mid/wma/wav/ogg/doc/xls/pdf/zip/flv/mp4/aac/ttf/youtube

pols1337

Yes I see the radar icon but the batch uploading process stops on that page, instead of automatically moving to the next page to edit individual files. 

Αndré

I think we could automatically uncheck unsupported file types at the batch-add form. I'll try to create a mod as soon as possible.

Αndré

Open searchnew.php, find
$checked = isset($expic_array[$picfile_replaced_forbidden]) ? '' : 'checked="checked"';
and replace with
$checked = isset($expic_array[$picfile_replaced_forbidden]) || !is_known_filetype($pic_fname) ? '' : 'checked="checked"';

Please report if it works as expected.

avery-t

Quote from: pols1337 on March 13, 2013, 02:22:13 AM
Hi, quick question: is there a way, when using the Admin's batch upload tool, to skip over or ignore certain file types? 

For example, when I upload my folders using FTP, those folders usually contain some trash files like picasa.ini, thumbs.db, and some about.txt text files for my own personal use.  When I use the batch upload, CPG wants to add those miscellaneous file types to my album.  Although I can manually un-check those particular files from being added, it gets very tiring after awhile.  Thus, is there a way for Coppermine to intelligently ignore those files?

Wouldn't the easiest solution be to upload only the image file?

Αndré

Quote from: avery-t on April 12, 2013, 06:46:17 AM
Wouldn't the easiest solution be to upload only the image file?
Sure, but some people don't upload pictures to their (external) gallery, but use already existing file/folder structure and/or need to keep the other files in their directories.

pols1337


Αndré

Committed in SVN revision 8563.