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 |
|
Posts: 32509
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.
Posts: 18
Understood. Please consider this to be a feature request, should I post that in another forum?
Posts: 32509
if you don't find something similar, please add a new feature request on http://sf.net/projects/gallery/ .
thanks.
Posts: 19
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
Posts: 32509
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.