1
HFS ~ HTTP File Server / It's easy!!!!
« 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
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!
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!