rejetto forum

Number of Upload

Guest · 5 · 5191

0 Members and 1 Guest are viewing this topic.

Xnorky

  • Guest
Hello,

Sorry for my english, i'm french...  :)

It is possible to have only one input for upload file ? (instead 10)...

Thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
easy answer: no.

but there is a hard way, don't do it: recompiling sources, changing this piece
Code: [Select]
  for i:=1 to 10 do
    files:=files+ x_template(diffTpl['upload-file'], ['%idx%',intToStr(i)]);
with the number you want. forget about it.


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
 ??? ??? ???

why not?

find the %upload-files% thing inside the [upload] tag of your template

and replace it with this:
Code: [Select]
<input name=fileupload size=70 type=file><br />
Much easier then de- and recompiling ;D


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, i forgot this solution
though i already gave it a long time ago


ebola

  • Guest
Hi

using v2.2b (150) and looks like

<input name=fileupload size=70 type=file><br />

instead of

%upload-files%

isn't working anymore.
Someone else same problem?