hi..

im using file upload control to upload some files on my server. but the problem with the same is it uploads the files of specific size only. for ex, if i upload a file in KB's, it works perfectly...but when i try to upload files of more than 1 or 2 mb's, it directly goes on a internet page with error, which is because of the size if the file..

is there any way by which i can upload an file with max size?

Hoping for a reply soon..

Thanks..

Recommended Answers

All 2 Replies

Use Try Catch block and post exact exception that is being thrown.

Make the following change in the node of the system.web section of the web.config file:

<httpRuntime maxRequestLength="11000" executionTimeout="275"/>

If does not resolve then post exact error message.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.