rejetto forum

anyyone upload only admin download ?

Cobalt · 9 · 4904

0 Members and 1 Guest are viewing this topic.

Offline Cobalt

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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 !


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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


Offline Mr. Anon

  • Tireless poster
  • ****
    • Posts: 270
    • View Profile

Offline CriS

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
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!



Offline dark1

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
thank you so much for your reply. will play with it  tomorrow. :) :) :)


Offline 2323

  • Occasional poster
  • *
    • Posts: 15
    • View Profile
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 .  :)

« Last Edit: October 24, 2008, 04:58:46 PM by 2323 »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
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.


Offline Fysack

  • Tireless poster
  • ****
    • Posts: 598
  • present picture
    • View Profile
    • Admin
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
GOD CAN READ YOUR MIND