rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: vbn on July 18, 2010, 10:43:55 AM

Title: Locking Files
Post by: vbn on July 18, 2010, 10:43:55 AM
Is there a way to "Lock" files which are being listed from new download requests ?

I am sorry tried searching but didnt find anything relevant  :(

My server has files which are download continously from all over the world and if I want to delete/move/rename a file its already locked by HFS....so how can I prevent fresh download requests on that file to be denied.
Title: Re: Locking Files
Post by: Mars on July 18, 2010, 11:20:18 AM
You can put this in the template for the build beta only

in the default template, at section  [file=folder=link|private]
replace
<a class='the-item' href="%item-url%">

by

{.if not|{.get|is new.}|<a class='the-item' href="%item-url%">.}

new files names are visible but the url not.

Title: Re: Locking Files
Post by: vbn on July 19, 2010, 01:20:42 AM
I did that but how does that help restrict new download session from opening for a 'particular' file ?

How do I indicate to HFS that file xyz.abc is the one which should no longer be downloadable but only listed.
Title: Re: Locking Files
Post by: maverick on July 19, 2010, 05:30:28 AM
How do I indicate to HFS that file xyz.abc is the one which should no longer be downloadable but only listed.

What you can do is move the files that should no longer be downloadable to a real folder, then in properties for that folder flag "no download".  The file list will still appear but the files won't be downloadable.
Title: Re: Locking Files
Post by: vbn on July 23, 2010, 02:13:26 AM
Awesome...that worked !  ;D