After successfully creating a bucket, you can upload files to it and process them in the following steps.
Directions
Uploading files
2. Click Bucket Management on the left sidebar to enter the bucket list.
3. Click Manage in the Operation column on the right of the target bucket to enter the bucket management page.
4. Select File Management on the left sidebar and click Upload Files.
5. Click Select Files in the pop-up window and select the target file.
6. Click OK.
If the uploaded file is displayed in the file list, the upload is successful.
Note
If you upload a file that has the same name as an existing file, the existing file will be overwritten.
Processing files
Note
The following is the image scaling procedure. For more file processing operations, see the CI API documentation. 2. Click Bucket Management on the left sidebar to enter the bucket list.
3. Click Manage in the Operation column on the right of the target bucket to enter the bucket management page.
4. In the file list, find the target file and click Details on the right.
5. In the pop-up window, copy the URL of the image.
6. Open your browser and add processing parameters in the following format in the address bar.
Image URL?processing API name/processing operation name/processing parameter
Note:
If the access permission on the image file is private-read, you need to add image processing parameters to the signed address.
Scaling API: imageMogr2
Scaling operation name: thumbnail
Processing parameter: !50p
The address with parameters added is https://examplebucket-1250000000.cos.ap-chengdu.myqcloud.com/sample.jpeg?imageMogr2/thumbnail/!50p
.
Paste this URL to your address bar. Then you will see the scaled image shown as below:
Was this page helpful?