This topic was translated by AI and is currently in queue for revision by our editors. Alibaba Cloud does not guarantee the accuracy of AI-translated content. Request expedited revision

Download files

Updated at: 2025-03-07 18:54

You can download files stored in OSS using a variety of methods, each tailored to different download needs.

OSS offers the following methods for downloading files:

  • Simple download: This method uses the GetObject interface to download files via a single HTTP request. It is best for smaller files or in scenarios where download speed is not a priority.

  • Resumable download: This method is ideal for downloading large files, particularly in unstable network conditions. It breaks large files into multiple shards for concurrent downloading. If the download is interrupted, OSS resumes from the last recorded breakpoint, eliminating the need to restart from scratch. This is particularly useful in environments with significant network instability.

  • Download files using a signed URL: Generate a signed URL to grant third-party access and allow file downloads without a long-term valid AccessKey pair. This method is appropriate for temporary authorization scenarios and ensures secure access.

  • Conditional download: Files can be downloaded when certain conditions are met, such as a specific last modified time or ETag value. This prevents unnecessary downloads of unchanged files, conserving bandwidth and resources. It's suitable for situations where files are frequently updated and redundant downloads need to be avoided.

    Feedback