prepare for file upload