rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Dan on January 08, 2005, 01:04:59 PM

Title: How to change the Upload Script?
Post by: Dan on January 08, 2005, 01:04:59 PM
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.
Title: How to change the Upload Script?
Post by: rejetto on January 09, 2005, 05:13:48 PM
edit the template
replace the line %upload-files%
with <input name=fileupload1 size=70 type=file><br>
Title: How to change the Upload Script?
Post by: Anonymous on January 10, 2005, 08:15:32 AM
Thank You
Title: 1 upload
Post by: New User on January 28, 2005, 09:49:49 AM
it works
(http://img195.exs.cx/img195/6493/upload5nc.th.gif) (http://img195.exs.cx/my.php?loc=img195&image=upload5nc.gif&bgc=3399CC&fgc=FFFFEE&bor=FFDD66)
Title: 5 upload fields
Post by: New User on January 28, 2005, 10:24:42 AM
if you copy the same line 5 times it will show 5 upload fields.    is there an easier way to do that?
(http://img184.exs.cx/img184/5434/5uploads5ki.th.gif) (http://img184.exs.cx/my.php?loc=img184&image=5uploads5ki.gif&bgc=3399CC&fgc=FFFFEE&bor=FFDD66)
Title: How to change the Upload Script?
Post by: Mr. Anon on January 28, 2005, 07:16:33 PM
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. :)
Title: How to change the Upload Script?
Post by: New User on January 28, 2005, 11:45:33 PM
changed and tested just fine for each upload button
thanx mr.anon
Title: How to change the Upload Script?
Post by: non-programmer on February 16, 2005, 06:45:53 AM
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>
Title: How to change the Upload Script?
Post by: rejetto on February 16, 2005, 05:27:52 PM
no, but it becomes useless
Title: re
Post by: pcs800 on March 07, 2006, 01:52:22 PM
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?