preparing file upload compatibility