Add wait for ack in upload