Minor fix

updated when success is sent - wait until end of upload