S
Stephen Travis
Does anyone know if the HttpPostedFile.ContentLength Property is determined
BEFORE or AFTER the file actually reaches the server. I'd like to limit the
size of an file upload but uploading a Gb file only to tell the user that
they're limited to 1Mb seems like not so good an idea.
If the HttpPostedFile.ContentLength Property can't tell you BEFORE the
upload, is there another way to do this?
I'm aware of the maxRequestLength parameter in the machine.config but there
appears to be no way to capture this event in code.
BEFORE or AFTER the file actually reaches the server. I'd like to limit the
size of an file upload but uploading a Gb file only to tell the user that
they're limited to 1Mb seems like not so good an idea.
If the HttpPostedFile.ContentLength Property can't tell you BEFORE the
upload, is there another way to do this?
I'm aware of the maxRequestLength parameter in the machine.config but there
appears to be no way to capture this event in code.