Forums

ASP

This topic is locked

Pure ASP Upload 2.13 not Limit PDF file size

Posted 24 Jun 2003 11:58:58
1
has voted
24 Jun 2003 11:58:58 Andrea Patron posted:
Can't limit file size (ex. must upload a PDF file not 200kb size) . But only with PDF files!!

Where's problems... I have made a Back office for Upload Technicals sceduler, created in PDF files.

Please Help me!!

Andrea Patron

Replies

Replied 24 Jun 2003 16:25:48
24 Jun 2003 16:25:48 Dean Saunders replied:
Hi wolk

the problem with aspupload is that it runs the script on your server so if your serverscript timeout is set to 90 sec you can only upload a file that will upload in that time.

if you want to upload bigger files then either change the serverscript timeout length on your server or possibley you can add some code to your page to set the time out to a longer period.

then if you only want pdf's to be allowed to go over a certian size simply add a bit of code for a codition region that says if the pdf option isn't checked then don't show the set scritp time longer code arround a check box.

this way when you want to upload something larger than your page will allow you simply click the tick box and your extra code appears and you can then upload larger files.

hope this gives you some idea of the kind of things you could look at.



Cheers

Dean

The one joy of computing is you can't go to jail for SCREEN RAGE.

Reply to this topic