Modified upload validation.