Use resumable upload
Fix state problem