graceful file upload limit error?

  • Thread starter Thread starter Tom Kaminski [MVP]
  • Start date Start date
no. the only way a webserver can stop an upload is to close the tcp
connection, as the protocol is so simple. IE just shows a generic message,
other browsers may be more informative.

-- bruce (sqlwork.com)
 
I have a series of .net file upload pages i've written that validate the
posted file size, before it is saved. Keep in mind that it is posted to
the server side and the server side is then validating the file
size...not the most efficient solution but it works. I can show you my
approach if that's specifically what you're looking for.
Shan
 
Shan Plourde said:
I have a series of .net file upload pages i've written that validate the
posted file size, before it is saved. Keep in mind that it is posted to
the server side and the server side is then validating the file
size...not the most efficient solution but it works. I can show you my
approach if that's specifically what you're looking for.

Are you saying this will catch it before the maxRequestLength is reached?
So if the file is 10 MB and maxRequestLength is 5 MB, your code will display
an "error" message?
 
Sorry I misunderstood you. I have a similar design to what you have
right now. So I have the same issue that you have I would imagine.
 
Back
Top