file upload

qex

Regular
Joined
Apr 2, 2003
Messages
78
Hi there I am trying to upload files using asp not asp.net I found example on the microsoft website on how to do this and it works great for small files, but anything over about 100k starts to really take a long time. I'm not sure where to look for help on this any help would be appreciated. Or just a point in the right direction... Thanks
 
Thanks for the quick response. I don't think its the connection, when ftp'ing I get pretty good upload rates.

I have seen the article you are refering to the problem is my web host will not let me register any dll's so I can't use the library that the article refers to.

Here is the link I found the code on it states that it is slow with large files, but I don't know why that is or how to correct it.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasdj01/html/asp0900.asp
 
Web.Config

You have to specify the maximum input file size in your Web.Config or Machine.Config. Web.Config is easiest, just add the tag

<httpRuntime maxRequestLength="10000" />

to specify 10Mb as the maximum upload filesize. The limit can be however high you want, just make sure you don't go overboard and allow people to abuse the system ;)

qex said:
Thanks for the quick response. I don't think its the connection, when ftp'ing I get pretty good upload rates.

I have seen the article you are refering to the problem is my web host will not let me register any dll's so I can't use the library that the article refers to.

Here is the link I found the code on it states that it is slow with large files, but I don't know why that is or how to correct it.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasdj01/html/asp0900.asp
 
Back
Top