Ensure file size of uploaded file is lower than maxRequestLength before the upload occurs?
<p>I've got a form with a FileUpload control where users can upload images. Can I ensure that the file size of the uploaded image is lower than the configured maxRequestLength before the upload occurs, and by doing so prevent an exception from being thrown when file size is too large?</p>

<p>My initial attempt of looking at ContentLength of PostedFile of the control was to no avail as the file is already submitted.</p>

<p>I have no interest in increasing the maxRequestLength.</p>
