prepare to upload