Cleanup upload file validation.

Checks for file size and type.