Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Thanks for the answer, but I'm not sure if that will help as it seems to be getting the contentLength for a file already on the server. My situation is for file uploads using the <input type="file"/>. Please let me know if I have misunderstood your answer. Commented Oct 27, 2011 at 8:01
  • there are a couple ways to do this but if you are planning on an easy solution from the server end you are not going to like them. First if you are using the web.config to manage max file size your upload page is never hit when it exceeds that amount. I will modify my answer to post possible solutions. Commented Oct 27, 2011 at 21:27