rejetto forum

Number of uploads

0 Members and 1 Guest are viewing this topic.

Offline Francisco

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


Offline ~GeeS~

  • Tireless poster
  • ****
    • Posts: 269
  • "The web was made for sharing..."
    • View Profile
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  ???
« Last Edit: August 25, 2006, 07:12:14 PM by ~GeeS~ »
~GeeS~


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13525
    • View Profile
i guess it's the only solution, currently