client-side validation of file size ?
i have an upload form for documents which uses server side validation to permit only uploads of pdfs with a file size of less than 1mb.
if an attempt is made to upload a big file, sometimes the page attempts to upload the file and quite a few seconds elapses before either the validation message appears, or the server times out.
is there a way of checking the file size client-side, before the upload is attempted, so the user will know instantly that the file they are looking to upload will fail, - without the wait ?