handle empty file upload