rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: jen_ on February 03, 2005, 05:35:10 AM
-
ok before i moved i had everything setup and nice.
after moving i got a new comp and installed hfs,i cannot remember the script for adding an upload button as well as like 5 of the upload browse buttons>
can someone share the script as well as where it goes when i edit my html.
i have messed with it for 2 days :cry: and havent figured it out.
here is what script i have and i cannot get it to work,so i believe that where im inserting it is wrong.
<html>
<head>
<title>HFS /incoming uploads/</title>
<style>
body, .button, .row, .big, .little, th, comment { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#DDDDFF; padding:10px;}
p { margin:0 }
.big { font-size:14pt; font-weight:bold; }
.little { font-size: 8pt; }
div.body {
border-bottom: 4px solid #BBBBFF;
border-top: 4px solid #BBBBFF;
border-left: 1px dotted #BBBBFF;
border-right: 1px dotted #BBBBFF;
background:#F3F3FF; padding:15px; margin:15px;
}
A { text-decoration:none; background-color:Transparent; color:#0055FF; }
A:visited { color:#5555FF; }
A:hover { background-color:#EEEEFF; }
img { border-style:none }
.right { text-align:right }
.row { font-size:10pt; background:#FFFFFF; border:1px solid #BBBBFF }
.comment { font-size:7pt; color:#888888; background:#EEEEEE; padding:3px; border:1px solid #DDDDDD; margin-top:2px; }
.column { color:#555555; font-size:13pt; font-weight:bold; padding-bottom:0; }
.button { padding:5px; padding-top:7px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }
</style>
</head>
<body>
<div style="float:right; padding:15px;"><a href="/incoming%20uploads/~login" class=button><img border=0 align=absbottom src="/~img27"> LOGIN</a></div>
<div style="float:right; padding:15px;">
<script language="jscript">
if (!window.parent.progress) document.write('<a href="/incoming%20uploads/~upload+progress" class=button><img border=0 align=absbottom src="/~img10"> ADD PROGRESS FRAME</a>');
else document.write('<a href="/incoming%20uploads/~upload" target=_parent class=button><img border=0 align=absbottom src="/~img10"> CLOSE PROGRESS FRAME</a>');
</script>
</div>
<div style="float:right; padding:15px;"><a href="/incoming%20uploads/" target=_parent class=button><img border=0 align=absbottom src="/~img21"> CANCEL UPLOAD</a></div>
<div style="margin-top:60px" class=little>folder</div>
<div class=big>/incoming uploads/</div>
<div class=body>
<form name=frm action="/incoming%20uploads/" target=_parent method=post enctype="multipart/form-data" onSubmit="frm.upbtn.disabled=true; return true;">
<input name=fileupload1 size=70 type=file><br>
<input name=fileupload2 size=70 type=file><br>
<input name=fileupload3 size=70 type=file><br>
<input name=fileupload4 size=70 type=file><br>
<input name=fileupload5 size=70 type=file><br>
<input name=fileupload6 size=70 type=file><br>
<input name=fileupload7 size=70 type=file><br>
<input name=fileupload8 size=70 type=file><br>
<input name=fileupload9 size=70 type=file><br>
<input name=fileupload10 size=70 type=file><br>
<input name=upbtn type=submit value="Upload files">
</form>
<br>Before uploading you may want to open a <a target=_blank href="/~progress">progress status window</a>.
</div>
<div class=little>
<a href="http://www.rejetto.com/hfs">HttpFileServer 2.0 alpha25</a>
<br>Servertime: 2/2/2005 11:24:30 PM
<br>Uptime: 13:55:47
<br>Disk space: 40.73 GB
</div>
</body>
</html>
thanks[/quote]
-
:? not even one button ? re-install and use the default template. It DOES have one upload button.
Remember - to permit users access on a REAL folder, and have them login ! it will NOT show the upload button if you wouldn't do that .
Edit: opps, I see that you mean browse bottons, not start-upload ...
-
this snippet is from HFS 2.0 beta18 default template, i think
<form name=frm action="%encoded-folder%" target=_parent method=post enctype="multipart/form-data" onSubmit="frm.upbtn.disabled=true; return true;">
%upload-files%
<input name=upbtn type=submit value="Upload files">
</form>
<br>Before uploading you may want to open a <a target=_blank href="/~progress">progress status window</a>.
</div>
<div class=little>
<a href="http://www.rejetto.com/hfs/">HttpFileServer %version%</a>
<br>Servertime: %timestamp%
<br>Uptime: %uptime%
<br>Disk space: %diskfree%
</div>
</body>
</html>
[upload-file]
<input name=fileupload%idx% size=70 type=file><br>
:?: if %upload-files% goes to the 'upload-file' section below it, is there some way of defining the %idx% variable so it will count 5,6 or 8 for example, unless it has a constant value.
-
http://www.audiodom.ru/hfs/HFS_damn_Template_by_brooks.zip
http://home.ripway.com/2005-2/256520/HFS_blue_templates_un+edited.zip
-
Thank you for the work ... :D
-
:?: if %upload-files% goes to the 'upload-file' section below it, is there some way of defining the %idx% variable so it will count 5,6 or 8 for example, unless it has a constant value.
i do not understand the question
-
when i replace %upload-files% with 5 lines like these, i have 5 uploads
<input name=fileupload1 size=70 type=file><br>
<input name=fileupload2 size=70 type=file><br>
<input name=fileupload3 size=70 type=file><br>
<input name=fileupload4 size=70 type=file><br>
<input name=fileupload5 size=70 type=file><br>
can i define %idx%=5 under the [upload-file] line, and would it do same thing?
edit: or is it necessary to delete that part (it still works without)
[upload-file]
<input name=fileupload%idx% size=70 type=file><br>
-
i feel a bit foolish to ask. i noticed the templates don't have [upload-results]. when you press "Upload Files" the page just goes blank or it slows right down and renames the file a partial_upload, depending on which Option you have set. could somebody fix 'em so they have [upload-success]. i don't know anything about programming, so i can't do it myself :#). your effort would be greatly appreciated.
http://www.audiodom.ru/hfs/HFS_damn_Template_by_brooks.zip
http://home.ripway.com/2005-2/256520/HFS_blue_templates_un+edited.zip
-
i got mine squared away in regardsd to the question i posted,
i love the hfs damn template ,now to add a pic to the background :D ,and im set.
-
can i define %idx%=5 under the [upload-file] line, and would it do same thing?
you can't define symbols yourself