Core: Fixed validation of the max size of the uploaded file.