rejetto forum

How to change the Upload Script?

Guest · 10 · 7308

0 Members and 1 Guest are viewing this topic.

Dan

  • Guest
How do I change the amount of files one can upload at one time? Right now the default setting will allow someone to upload 10 files in the upload area.

What I am wanting to do is only allow a person to upload 1 file at a time. So is there a way to change the script, Or is there a script I can use if so what is the script code and or what line do I change in the program itself to make this possible if indeed it can be done.


Thanks for your time.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13438
    • View Profile
edit the template
replace the line %upload-files%
with <input name=fileupload1 size=70 type=file><br>




New User

  • Guest
if you copy the same line 5 times it will show 5 upload fields.    is there an easier way to do that?


Offline Mr. Anon

  • Tireless poster
  • ****
    • Posts: 270
    • View Profile
For the upload to work, you must change the fileupload(x) with the corresponding number so that HFS could recognize which files are being uploaded. :)


New User

  • Guest
changed and tested just fine for each upload button
thanx mr.anon


Offline non-programmer

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
Quote from: "rejetto"
edit the template
replace the line %upload-files%
with <input name=fileupload1 size=70 type=file><br>
do you have to delete the next part?
Code: [Select]
[upload-file]
<input name=fileupload%idx% size=70 type=file><br>
http://danasoft.com/vipersig.jpg
The signature image is generated in real-time for each user that views it.
Your IP address and other information are only visible to YOU, not to others.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13438
    • View Profile

Offline pcs800

  • Occasional poster
  • *
    • Posts: 16
    • View Profile
I would like to do this exact thing and also restrict to upload only files of type .bcproj .mxc .jpg .jpeg

How would I do that?