rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Cobalt on November 04, 2004, 04:18:42 AM

Title: anyyone upload only admin download ?
Post by: Cobalt on November 04, 2004, 04:18:42 AM
Ok here is a silly question I have made a upload folder that I would like anybody to be able to upload to But only want the admin to be able to download from Can I do this ? and if so how ? I’m new to this but I find this is a really great program for sharing many thanks !
Title: anyyone upload only admin download ?
Post by: rejetto on November 04, 2004, 05:57:36 AM
not at the moment, sorry
i planned to introduce something like "content visibility", for folders, in addition to the visibility managed by the "hide" command
Title: anyyone upload only admin download ?
Post by: Mr. Anon on November 04, 2004, 06:58:38 PM
That's a feature that I would like also btw :)
Title: It's easy!!!!
Post by: CriS on December 08, 2004, 08:57:43 AM
For example:

We have REAL folder C:\Upload\
And in HFS we have this folder: http://127.0.0.1:8080/Upload/
ANYONE can Upload in this folder.

We just need to set "Default file mask" to upl.htm (for example)
And we need to put READ ONLY file "upl.htm" to C:\Upload\  folder.

upl.htm
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="JavaScript1.1" type="text/javascript">
<!--
location.replace("./~upload");
//-->
</script>
<noscript>
<meta http-equiv="Refresh" content="0; URL=./~upload">
</noscript>
</head>
<body>
If your browser not support redirect <A href="./~upload">click here</a>

</body>
</html>

And now anyone, who enter http://127.0.0.1:8080/Upload/ will be redirected to upload section of this folder(http://127.0.0.1:8080/1/Upload/~upload)!!!

For admin we make in HFS folder: http://127.0.0.1:8080/Admin/ (For example!). The sourec of this folder is the same as for http://127.0.0.1:8080/Upload/ (it is C:\Upload\)...
Just set restrict access for it, and set "Hide" for it!

And now we have:
For "Upload"
NOONE can see files!!!!!!
ANYONE can upload
For "Admin":
NOONE can see this folder
Only!!!! ADMIN can get there!


I think, it's not hard... :) But you can ask for more!
Title: anyyone upload only admin download ?
Post by: rejetto on December 09, 2004, 04:06:30 AM
excellent :)
Title: Re: anyyone upload only admin download ?
Post by: dark1 on October 24, 2008, 01:09:01 PM
thank you so much for your reply. will play with it  tomorrow. :) :) :)
Title: Re: anyyone upload only admin download ?
Post by: 2323 on October 24, 2008, 04:54:03 PM
CriS ,
I like this topic so much because you help me exactly what i m looking for , try so hard for past few days but didn't success and waste so much time.. :'( :'(
After try to  follow your step by step guide i managed to get it done successfully just less than 5 minutes .
You are so great and kind to shared out so details explanations here !
Thank you very much . :D

I hope this post can be "Sticky Topic" because it's so helpful and useful ! ;)  Excellent  post .  :)

Title: Re: anyyone upload only admin download ?
Post by: Mars on October 24, 2008, 05:20:01 PM
You are lucky to find your happiness here, because this is a topic very old of 2004, at present many things have to evolve with the béta. last one I recommend you to consult the wiki about hfs.
Title: Re: anyyone upload only admin download ?
Post by: Fysack on October 26, 2008, 09:34:11 PM
You are lucky to find your happiness here
lol its great to see that it aint only me that miss out the dates from time to time