Validate file upload