rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Francisco on August 25, 2006, 05:39:39 PM

Title: Number of uploads
Post 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.
Title: Re: Number of uploads
Post by: ~GeeS~ on August 25, 2006, 06:47:13 PM
In the default template go to section [upload] and replace the variable %upload-files% in

Code: [Select]
<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
Code: [Select]
<input name=fileupload1 size=70 type=file><br>with the result:
Code: [Select]
<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
Code: [Select]
[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  ???
Title: Re: Number of uploads
Post by: rejetto on August 25, 2006, 06:50:45 PM
i guess it's the only solution, currently