FileUpload size and win2003 service pack1 ??

J

james

hi!
I have written an asp.net web page which can upload files,
i didn't modify the machine.config and the web.config
file, when i upload a file that size < 1mb, it can run
correctly, but when i upload a file that size > 1mb and <
4mb, it cause an error.

then i open the machine.config and the web.config file, it
show
<httpRuntime executionTimeout="90" maxRequestLength="4096"

the asp.net web page can run correctly these days, but
yesterday, after i installed windows 2003 service pack 1,
then if uploaded-file size > 1mb it will cause an error.

please help~~thank you :)
 
P

Patrick Olurotimi Ige

James how does it occur?
Does it work sometimes or the error always persist?
 
P

Patrick Olurotimi Ige

web.config supports an <httpRuntime> element under the system.web
section -- specifically something like this

<httpRuntime maxRequestLength="10000" />
will establish a max file upload size of 10,000 Kilobytes for example
Try that..
Are u sure u are saving ur web.config or machine.config well after
modification and make sure its well formed?
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top