document file upload validation