You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Download Object
Overview of Object Download (Go SDK)
Copy page
Download PDF
Overview of Object Download (Go SDK)
The TOS Go SDK supports downloading objects through methods such as direct download and range download. You can select the appropriate download method according to your business requirements and the scenarios where each method is applicable.​
Instructions for Download Methods​
  • Conditional Download: The download will proceed only if the specified conditions are met; otherwise, an exception will be thrown and the download will not be triggered.​
  • Range Download: You do not need to download the entire object. If you only need part of the information in the object, you can use range download to download data within the specified range.​
  • Resumable Download: When downloading an object, if the download fails due to network interruptions or program crashes, you can use the resumable download feature to continue downloading files that were not successfully downloaded.​
When downloading objects, the Go SDK supports streaming downloads by returning io.Reader from the download object interface as the data source for reading. During the download process, users can monitor the progress via the progress bar feature. The client-side throttling interface can be used to restrict the download speed.​
Last updated: 2025.09.19 17:30:22