Add from local server inserts non-image types

pnear

Joined: 2003-08-12
Posts: 18
Posted: Mon, 2005-08-29 20:23

I think I can safely classify this a bug.

When adding items via local server, Gallery2 will automatically recurse into subdirectories and create albums and files based on what it finds. Unfortunately, when recursing into such a directory it is adding everything, not just valid media types. For example, every directory contains a thumbs.db and ehthumbs.db in my system. Gallery is adding those .db system files into the album which then causes errors when people browse to them.

Back to the expected behaviour... If I manually browse through the upload directory on the server using Gallery's "Add from local server" page, G2 will properly check off the media files and leave the .db files unchecked. So the logic that exists would work, it's just not getting applied to subfloders. Ideally, G2 would recurse through the directories, create albums, create items only for files that are recognized media types.

Thanks
Pete
----

Gallery URL (optional): http://www.thenears.com/gallery2
Gallery version: G2 RC2 (latest from CVS actually)
Webserver (with version): IIS
Datatabase (with version): mySQL
PHP version (eg 4.2.1): 4
phpinfo URL (optional):
Graphics Toolkit(s): GD2
Operating system: Win2003
Web browser/version: IE6
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-30 11:29

nope, this is an intended behavior. G2 isn't just a photo archive / management / album tool, it can also manage movies, audio items, pdfs, ... and everything else, which it just classifies as unknown item.

of course it would be nice if you could add a filter in this recursive add method, but that would be a feature request and not a bug.

 
pnear

Joined: 2003-08-12
Posts: 18
Posted: Tue, 2005-08-30 11:51

Understood. Please consider this to be a feature request, should I post that in another forum?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-30 12:18

if you don't find something similar, please add a new feature request on http://sf.net/projects/gallery/ .
thanks.

 
StanVanDam

Joined: 2003-07-19
Posts: 19
Posted: Mon, 2005-11-14 18:03

Hi, just wondering if this feature request has been added. I looked at SourceForge and the Feature Vote list and didn't see it. Each of my 300 album folders contains an SFV and text file and sometimes other files. I don't want these added. Is there something I can do to add only recognized media types? I'm lookin at the \gallery\modules\core\ItemAddFromServer.inc file but my PHP skills are weak. I only use JPG, MPG, AVI, MOV, BMP, and WMV.

Thanks!


Gallery = 2.0.1 core 1.0.0.1
PHP = 5.0.5 apache2handler
Webserver = Apache 2.0.55
Database = MySQL 4.1.15-NT
Toolkits = Exif, Thumbnail, Ffmpeg, NetPBM
OS = WinXP Pro SP2
Browser = Firefox 1.5

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-14 18:49

if you don't see it listed, you're either searching for the wrong term or it hasn't been requested yet.

the correct way to add such a filter would be with a itemaddoption.