fixed: call sendToCloud a little later

call it after is_upload was assigned.