Last updated：2023-01-10 16:02:55
Typically, the cause lies in caching. identify whether CDN is used, refresh the CDN, clear the local cache, and request again.
To upload a file greater than 100 MB, you are recommended to use the API or SDK to perform a multipart upload.
The content management page on the console does not support uploading a file greater than 500 MB or uploading more than 255 files. If the size of a file or the number of files to be uploaded exceeds the limit, you must use the API.
To upload a large file, follow these steps:
For more information, see Multipart Upload.
Yes. KS3 allows you to upload a file that uses the same name as an existing file. However, the original file will be overwritten because version management has not been provided. Before uploading a file, you can use the Head Object interface to check whether the file already exists.
The API will return the 400 Invalid key message without overwriting the file.
Yes. You only need to set success_action_redirect in the POST form field and specify the redirect URL of the client after a successful upload. For more information, see POST Object.
Add the Content-Type request header to describe the file content MIME format.
You can use one of the following methods to set the Content-Type value:
Yes. While uploading a file on the console, you can view the file upload progress in the upload window. While uploading files by using KS3 Finder, you can view the file upload progress in the task management window and resume a transmission from a breakpoint. While uploading files by using data migration tool KS3Up-tool, you can view the file upload progress by executing commands on the console.
While uploading a file on the console, you can view the file upload progress in the upload window or click the cross to cancel the upload operation. While uploading files by using GUI tool KS3 Explorer, you can stop and cancel a file upload task in the task management window. For more information, see KS3 Finder. You can also use the API to terminate a multipart upload task. For more information, see Abort Multipart Upload. If an ongoing upload task cannot be terminated, use the stop or kill command.
GUI tool KS3 Explorer and the multipart upload API support continuing with file transmission from a breakpoint but the console does not. If you start an upload task after forcibly terminating the task, multipart upload is used to continue with the file transmission from the breakpoint if the file is greater than 1 GB. If the file is smaller than 1 GB, you must re-transmit the file.
You can use the Head Object API to identify whether a file to be uploaded already exists on the KS3. If yes, you do not need to upload the file. For a file that is already uploaded, you can use a HEAD request to implement file transfer in seconds.
For more information, see:
Identify whether the cannedAcl parameter in the conf file is private. If yes, only the file owner or a user with the READ permission can access the file. To access the file, you must pass signature authentication.
Error code 413 means that the file to be uploaded does not meet the following requirements:
Access Keys (AKs) and Secret Keys (SKs) are used to generate signatures for requests for non-public resources. By default, KS3 does not impose access control if you use the same pair of AKs/SKs and different IP addresses to access KS3.
The SDK supports automatic signature calculation, and AKs/SKs need to be written into the program. If you don’t want to specify AKs/SKs, you can construct a signature by yourself according to the KS3 signature format.
Error code 408 was returned because the server was timed out while waiting for the request. The data interaction idle timeout is 60 seconds. If no data interaction occurs during the period, the server will return error code 408. It is recommended that you check the speed limit settings.
You must configure the Exposed Header in the CORS settings, and set the response header that allows access from the application.
After you configure the bucket CORS policy, it takes 2 minutes for the cache to take effect.
Use one of the following methods:
KS3 Endpoint refers to the domain name that KS3 uses to provide services to external users. KS3 uses the RESTful API to provide services to external users. It supports HTTP and HTTPS. Different regions require different domain names. The internal network and external network of the same region use different domain names. For more information, see Region and domain comparison table.
KS3 requires that the bucket be in the same region as the Endpoint. For example, if you a bucket named myBucket in BEIJING region and you access https://mybucket.ks3-cn-shanghai.ksyuncs.com/test.jpg (the Endpoint is SHANGHAI), you will get a HTTP response code 307 temporary redirect error message.
In addition, if the ACL of the target file is private, you need to add the signature information. For more information, see Authorization calculation method.
Yes. The request must have the Accept-Encoding request header, and the requested file must be greater than 1 KB.
When uploading a file, you must specify the compression scheme in the Content-Type field of the request header. For example, you must declare the compression scheme list in the HTTP request sent by the client as follows:
Accept-Encoding: gzip, deflate
The server uses the specified compression scheme , which is indicated in the Content-Encoding field:
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.