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?
My initial attempt of looking at ContentLength of PostedFile of the control was to no avail as the file is already submitted.
I have no interest in increasing the maxRequestLength.