Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
how to allow download for specific file mask?
how to allow download for specific file mask?
andreybbrv
·
6 ·
2815
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
andreybbrv
Occasional poster
Posts:
21
how to allow download for specific file mask?
on:
February 01, 2011, 08:56:46 PM
hi,
folder have no download flag but i need allow download only specific file mask (all images). how to do it?
thank you.
rejetto
Administrator
Tireless poster
Posts:
13510
Re: how to allow download for specific file mask?
Reply #1 on:
February 10, 2011, 02:12:51 PM
if it's enough for you, the easier way is to set this value
*.jpg;*.gif;*.png
in folder > properties > file masks > files filter
so they don't see other files.
andreybbrv
Occasional poster
Posts:
21
Re: how to allow download for specific file mask?
Reply #2 on:
February 10, 2011, 02:22:34 PM
I know this way but this is not enjoy. For example: if you put on folder flag NO DOWNLOAD you will able see all html files which inside this folder.
I need do same but for images also.
Simple, users must see other files also but access only for images.
rejetto
Administrator
Tireless poster
Posts:
13510
Re: how to allow download for specific file mask?
Reply #3 on:
February 10, 2011, 11:10:49 PM
it's not easy.
you need HFS 2.3, press ALT+F6 and put something like this
[+download]
{.disconnection reason|only images, sorry|if={.match|*.jpg;*.gif;*.png|%url%.}.}
i didn't test it, and you can find documentation at
http://www.rejetto.com/wiki/index.php/HFS:_Event_scripts
this is going to affect all folders, but you can customize it so to affect only a dir. Read the fine manual.
andreybbrv
Occasional poster
Posts:
21
Re: how to allow download for specific file mask?
Reply #4 on:
February 11, 2011, 09:16:09 AM
thank you. but i need do it for many folders and not for 2.3 because 2.3 is not responde very often (i write about it in other subjects)
rejetto
Administrator
Tireless poster
Posts:
13510
Re: how to allow download for specific file mask?
Reply #5 on:
February 16, 2011, 02:38:45 PM
it cannot be done in 2.2
and being many folders is a marginal problem
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
how to allow download for specific file mask?
Search
Username
Password
Always stay logged in
Forgot your password?