Fix #102

Make upload retryable