rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: kelstertx on August 02, 2011, 12:24:44 AM

Title: Still see jpg files as downloads
Post by: kelstertx on August 02, 2011, 12:24:44 AM
I'm using build 275 here, but I don't think anything has changed regarding this feature.

I am trying to thin out the amount of log lines, and have "*.jpg;" listed as "don't consider as download (mask)" setting.  Yet I still see every little .jpg in the log with "Fully downloaded blah blah blah".  Am I using it wrong?  I think I tried comma instead of semicolon as delimiter, but no joy.

Does real folder vs virtual folder matter for this setting to work?

PS. I'd also be happy with a global setting that let me pick some filesize under which to not consider as a download.

-Kelly
Title: Re: Still see jpg files as downloads
Post by: r][m on August 02, 2011, 11:18:49 AM
I have all my images in a virtual folder and select them all as a list in VFS window.
Right click on the list, go to Properties > Flags and check "Don't log" and "Don't consider
as download"
I think the file mask only prevents being added to the count of downloads, but doesn't
prevent logging.
Title: Re: Still see jpg files as downloads
Post by: raybob on August 02, 2011, 09:07:45 PM
Well.... you could set it so that HFS doesn't log any downloads automatically and then in hfs.events under the [download completed] section put something like

Code: [Select]
{.if|{.!=|%file-ext%|jpg.}|{:{.add to log|%ip% downloaded %item-name%.}:}.}

I noticed the same thing before when I tried to make it not log .js and .css files.... not sure if this is a bug or not but there's a temporary solution.
Title: Re: Still see jpg files as downloads
Post by: r][m on August 03, 2011, 05:00:21 AM
My method works for .css & .js also. I never see them in my log.
This prevents web page images from logging.
This way my shared folders of photos do log.

@ raybob95 The code you posted adds .jpg to the log here.  ???
Quote
not sure if this is a bug or not
I don't think it's a bug.
Title: Re: Still see jpg files as downloads
Post by: raybob on August 03, 2011, 10:55:37 AM
I said something along the lines of that I wrote it in 3 seconds and never tested it  :o
Title: Re: Still see jpg files as downloads
Post by: kelstertx on August 15, 2011, 06:53:42 PM
I have all my images in a virtual folder and select them all as a list in VFS window.
Right click on the list, go to Properties > Flags and check "Don't log" and "Don't consider
as download"
I think the file mask only prevents being added to the count of downloads, but doesn't
prevent logging.

This sounds perfect, except I took the suggestion (offered by the program at folder creation time) that my folders should be real, not virtual.  I can't drill down into the top level folders to select the images and change that setting.  Anything I can do for real folders?
Title: Re: Still see jpg files as downloads
Post by: rejetto on August 22, 2011, 03:38:51 PM
the "don't log" option is available also with real folders.

anyway i studied your problem and only solutions i can see are
- to follow the suggestion you got (of changing the location of files, dividing)
- or to disable the logging options and to script your logging method.

in the future i may add another tool for filtering the log in such cases.
Title: Re: Still see jpg files as downloads
Post by: kelstertx on August 22, 2011, 04:46:08 PM
the "don't log" option is available also with real folders.

anyway i studied your problem and only solutions i can see are
- to follow the suggestion you got (of changing the location of files, dividing)
- or to disable the logging options and to script your logging method.

in the future i may add another tool for filtering the log in such cases.

The "don't log" is for the entire folder, and all the files I do want to log are in there as well.  Basically, it's big folders with lots of home movie clips, karaoke recordings, etc.  There's one thumbnail picture per "real download item", which makes the page prettier, but I don't want to see that in the log, since it looks so similar to a real download.  But if I can't clean it, I can't clean it.  HFS is still the best and easiest tool for what I do.

One last thought... From an HTML standpoint, it's just the stuff sent over as a result of IMG tags that gets in the way.  Real downloads are pointed to with an A tag and the HREF does not point to a picture.  Does that open the door to any tricks?  Any way to block things by the tag?  Maybe CSS classes?  (I don't know how to use events yet.)  Obviously having all the pictures in a "don't log" folder would work, but that's too much re-org and re-write of entire site for me, since all thumbnails are same filename across entire tree to keep index files almost identical for easy copy pasta.

Thanks.
Title: Re: Still see jpg files as downloads
Post by: kelstertx on December 26, 2011, 07:41:33 AM
Just as a followup, I did move all the pictures to a virtual folder and made the entire folder a "don't count as download" folder.  Took some work, but seemed the most straightforward of the choices.