Uploaded file validation: size and format.