Validating File Size and Extensions
I am using Validation toolkit to validate a form with a file upload field.
I am restricting the type of files based on their extension and the file size to 10MB
I am using the $_FILES variable to capture the info from the file field.
But... the problem I have is that it tries to upload the file to the server before telling me it cant. Is this a limitation of doing server side validation for file fields or is it not functioning correctly?