rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Francisco on August 25, 2006, 05:39:39 PM
-
Hi, in the current template there is 10 uploads box, how can I edit the template to let just 1? i wanna do this because i´m having a lot of issues uploadinf files with ie6 but specialy when people try to upload more than 1 file in the same session or upload page.
-
In the default template go to section [upload] and replace the variable %upload-files% in
<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">by
<input name=fileupload1 size=70 type=file><br>with the result:
<form name=frm action="%encoded-folder%" 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=upbtn type=submit value="Upload files">for each input line you want. Dont put in the "..." and don't forget to increase the number.
Delete section
[upload-file]
<input name=fileupload%idx% size=70 type=file><br>
Sorry for the small code, couldn't resize.
_______
~GeeS~
May be there is a better solution, but don't know where to define %idx% in the template ???
-
i guess it's the only solution, currently