Michele
Michele

Reputation: 11

Onedrive new api, Resumable item upload fail when token expires

I have a problem with "Resumable item upload" (http://onedrive.github.io/items/upload_large_files.htm). If the access token expires during the upload session I receive a 401 Unhautorized error even if I use the refresh token to obtnain another access token.

Upvotes: 0

Views: 161

Answers (1)

smooty86
smooty86

Reputation: 1112

You are supposed to handle this in your application - refresh token if this happens and then continue uploading. Current chunk should be properly saved so you can continue with the next one.

Upvotes: 0

Related Questions