Modify file upload to be async