0

In web application [asp.net], when i am trying to upload a .doc file which is having 6 mb size, when i click ok button it is giving one empty tab in browser, where as when i upload small size .doc it is uploading, why it is like this, can you help me.

0

1 Answer 1

1

Check the default size allowed in IIS the maxAllowedContentLength.

You can change this in your web.config as well. An example:

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>
Sign up to request clarification or add additional context in comments.

5 Comments

ya Mr. Jeremy Child i will check and get back you
in web.config the code you give is in kb, whta is that means '524288000'
Mr. Jeremy Child it is giving same ting empty borwoser
Interesting. Are you using the development IIS(from debug in visual studio) or an IIS instance?
ya now it is working fine, can explain me what about this. Mr. Jeremy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.