15 Gbps of upstream and downstream bandwidth for each bucket in a public cloud region in the Chinese mainland, or 10 Gbps for each bucket in other regions. If this threshold is reached, traffic throttling will be triggered. For more information, see Specifications and Limits.
You need to specify a correct Content-Type
header for this file. In addition, the value of Content-Disposition
cannot be attachment
. If the browser supports the current file format, it will directly open the file instead of downloading it. For detailed directions, see Custom Headers.
You can go to the COS console and set the value of Content-Disposition
in the custom object headers to attachment
. For detailed directions, see Custom Headers.
You can also let your browser pop up a window for the file to be downloaded by setting the value of the request parameter response-content-disposition
in the GET Object API to attachment
. For more information, see GET Object.
Note:To use the
response-*
parameter in a request, the request must be signed.
Tencent Cloud COS adopts intelligent resolution for COS endpoints. In this way, the optimal linkage can be provided for you to access COS with different ISPs.
If you have deployed a CVM within Tencent Cloud for accessing COS over a private network, you must first ensure that the CVM resides in the same region as the COS bucket, then use the nslookup
command on the CVM to resolve the COS endpoint. If a private IP is returned, access between the CVM and COS is over a private network; otherwise, it is over a public network.
If your CVM resides in a different region from the COS bucket, but it is still in one of COS regions, you can use the COS private network global acceleration domain name to access files and achieve cross-region access between the CVM and COS.
Tencent Cloud products within the same region can access each other over a private network, incurring no traffic fees. Therefore, we recommend choosing the same region when you purchase different Tencent Cloud products to save on costs.
Note:The private networks of Public Cloud regions do not interconnect with those of Finance Cloud regions.
The following shows how to determine access over a private network:
For example, when a CVM accesses COS, to determine whether a private network is used for access, use the nslookup
command on the CVM to resolve the COS endpoint. If a private IP is returned, access between the CVM and COS is over a private network; otherwise, it is over a public network.
Note:Generally, a private IP address takes the form of
10.*.*.*
or100.*.*.*
, and a VPC IP address takes the form of169.254.*.*
.
Assume that examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com
is the address of the destination bucket; the Address: 10.148.214.13
below indicates access is over a private network.
nslookup examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com
Server: 10.138.224.65
Address: 10.138.224.65 #53
Name: examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com
Address: 10.148.214.13
Name: examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com
Address: 10.148.214.14
For more information on private and public network access and connectivity testing, see COS Access via Private Network and Public Network.
For the private DNS server addresses of CVM, see Private Network DNS.
Note:The private IPs of Tencent Cloud BM instances may be different from those of CVM instances, and their formats are usually
9.*.*.*
or10.*.*.*
. If you have any queries, please contact us.
You can log in to the COSBrowser, select the folder to be downloaded, and click Download to download the folder or files in batches. You can also download the folder using the COSCMD tool. For more information, see COSCMD.
You can troubleshoot by referring to 403 Error for COS Access.
COS allows you to upload or download multiple files through various methods such as the console, APIs/SDKs, and tools.
The versioning feature is now available in COS. If versioning is not enabled for the bucket, when you upload a new file to a bucket in which another file of the same name already exists, the older one will be directly overwritten; if versioning is enabled, multiple versions of the object will co-exist.
1 MB. For more information, see Specifications and Limits.
Yes.
For more information, see Download via Pre-Signed URL.
By default, the browser will cache objects that have been loaded successfully. Therefore, if you access the same URL, the cached object will be returned without requesting the server again. Therefore, you are advised to use the Cache-Control: no-cache
header during object upload to prevent browser caching (see PUT Object or Initiate Multipart Upload for details). Alternatively, you can specify the response-cache-control=no-cache
request header during object download to prevent browser caching (see GET Object for details).
This error may occur due to an unstable local network environment. You can try the upload again in a different network environment.
To do so, you can set your bucket permission to private read/write. For more information, see Setting Access Permission. You can also configure a hotlink protection whitelist on your bucket to block any access from domain names not in the list. For more information, see Setting Hotlink Protection.
No. COS filenames are case-sensitive, and thus so are the download URLs. If you have enabled CDN acceleration for your bucket, you can go to the CDN console to configure Cache Ignore URL Case, which will increase the hit rate to some extent.
COS allows each root account to have up to 1,000 bucket ACLs. If more bucket ACLs have been configured, this error will occur. Therefore, you can delete unnecessary bucket ACLs.
Note:You are not advised to use object-level ACLs or policies. When calling APIs or SDKs, if you do not need ACL control over a file, we recommend leaving the ACL-related parameters (such as x-cos-acl and ACL) empty to inherit the bucket permissions.
Apakah halaman ini membantu?