View Full Version : ASP File Upload.
jsawkang
05-30-2003, 12:05 AM
Hi All,
I was wondering whether can upload file as huge as 8 MB plus to web server using ASP.
I have try to upload file as big as 2MB but fail. not sure why also. maybe becoz of file size restriction. file size around 500K no problem but not 1MB plus.
can anayone help me out? i wonder there is a code to upload file as big as 8MB to web server.
Thanks in advance
skriptkiddie
05-30-2003, 09:29 AM
Originally posted by jsawkang
Hi All,
I was wondering whether can upload file as huge as 8 MB plus to web server using ASP.
I have try to upload file as big as 2MB but fail. not sure why also. maybe becoz of file size restriction. file size around 500K no problem but not 1MB plus.
can anayone help me out? i wonder there is a code to upload file as big as 8MB to web server.
Thanks in advance
I'm pretty sure it's a restriction if it allows a smaller size upload. You'll probably need to contact your host about increasing the size of the upload.
Koolman
05-30-2003, 12:14 PM
there are many ASP upload utilities or scripts, many of them free. Most require some kind of server side dll or component but there are some that don't. Almost all have a way to customize the code to restrict file sizes for upload. This usually requires a little knowledge of VBScript. So the first step you need to take is to find out what upload script/component is being used on your server. Then the file your form is posting to must have some script that makes things happen. Sometimes there are several files involved. Chances are one of those files has the file restriction set in it. If you can access your server via FTP you can download that file edit it and reupload it via FTP back to the server. That should take care of it.
Bullschmidt
06-02-2003, 12:44 AM
For pure ASP (i.e. non component) solutions (and I believe this would be true for component solutions too) can increase the timeout for the page:
' Script timeout in seconds for this page.
' (60 x 60 = 1 hour.)
Server.ScriptTimeout = 60 * 60
And when this didn't do the trick, once I had to do a trouble ticket with my Web host and they then increased the allowable upload filesize.
jsawkang
06-04-2003, 03:40 AM
Hi guys,
thanks for the help. i've found out that it's becoz of the file size restriction the other day. i'm using aspsmartupload component and the file size is restricted to 1MB.
thanks
Bullschmidt
06-04-2003, 07:13 AM
So is that how aspsmartupload component ALWAYS works with a filesize restriction of 1 MB or is that probably something the Web host controls?
jsawkang
06-04-2003, 09:20 PM
before i contact the web host about my situation, i try out ur code and it work.
and i've check visited aspsmartupload website and found out that if wanna upload bigger file, have to change the metaname.xml file. forgot the digit already.
anyway, thanks for the help really.
regards.
jsk
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.