Skip to content

Resumable uploads

Compare
Choose a tag to compare
@petrbroz petrbroz released this 06 Jun 09:21

The forge-dm upload-object command now supports a --resumable flag to leverage the Data Management service's resumable capabilities. When the flag is used, the command will first query all ranges of data that have already been uploaded, and it will then start uploading the missing pieces in chunks of predefined size. If the command fails, for example with a timeout due to internet connectivity issues, simply run it again and it will continue uploading the missing chunks.

There are two additional command line flags related to this feature:

  • --resumable-page <megabytes> allows you to change the size (in MB) of the individually uploaded chunks which are 5MB by default
  • --resumable-session <id> can be used to specify a custom resumable session ID; if this value is not provided, the command line tool will compute an MD5 hash of the uploaded file's contents and use that as the session ID