Client side validation for upload file type