Hi all,
I'm currently working on Dropbox API to upload a backup file (.tar.gz) of 25GB - 27GB. Earlier the dropbox API was working fine with the long-lived access token.
Below are the steps which I have followed to upload a backup file in chunks of 4194304
1. Generate Access and Refresh Token using dropbox oauth2/token
https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token
2. Starting the upload session by calling the /upload_session/start
https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start
3. Appending the backup file to the upload session in chunks of 4194304
https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append
The upload usually completes after 5-7hrs, due to the short-lived token the upload process is interrupted after 4hrs.
The curl call made to /upload_session/append after 4hrs is throwing an expired_access_token error.
I have tried to renew the access token, using the below API after receiving the expired_access_token error in the curl call:
https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token
The access token was successfully renewed and tried to resume the upload by providing the access token to upload_append API.
After the curl call made to upload_appened API, I now receive a "500 error page" and am unable to continue the upload process.
Need help for me to complete the backup process.
how to proceed with uploading a backup file that takes more than 4hrs to complete.