tencent cloud

masukan

Uploading an Object

Terakhir diperbarui:2024-01-06 15:06:14

    Overview

    You can upload objects to a bucket through the File List page in the COS console. For more information about objects, please see Object Overview.
    Note:
    Currently, the MAZ configuration is only available in Beijing, Shanghai, Guangzhou, and Singapore regions. To upload objects to an MAZ storage class such as MAZ_STANDARD, enable MAZ configuration for the bucket in the region first.
    Currently, the INTELLIGENT TIERING storage class is only available in Beijing, Nanjing, Shanghai, Guangzhou, Chengdu, Chongqing, Tokyo, and Singapore regions. To upload objects to this storage class, enable INTELLIGENT TIERING for the bucket in the region first.
    Currently, the DEEP ARCHIVE storage class is only available in Beijing, Nanjing, Shanghai, Guangzhou, Chengdu, Chongqing, Tokyo, and Singapore regions. To upload objects to this storage class, select a bucket in the region first.
    When you upload an object in the console, the upload speed is strongly subject to the current network environment. If the object is large or the network conditions are poor, we recommend you use multipart upload. In multipart upload, a file can be divided into multiple parts and uploaded separately, and the failure to upload a single part will not affect other uploaded parts. You can use the COSCLI tool, APIs, or SDKs for different programming languages to initiate a multipart upload request. Among them, SDKs and COSCLI support checkpoint restart, where incomplete uploads can be resumed from where left off, thereby improving the overall upload success rate.

    Prerequisites

    Before uploading an object, make sure that you have already created a bucket. If no bucket has been created, please see Creating Buckets.

    Directions

    1. Log in to the COS console.
    2. Click Bucket List on the left sidebar.
    3. Click the target bucket to enter the File List page.
    4. In File List, click Upload Files.
    5. In the pop-up window, click Select Files or Select Folders and select one or multiple local files (or folders) as needed.
    Note:
    Since some browsers do not support uploading multiple files, we recommend you use popular browsers such as Internet Explorer 10 or later, Firefox, or Chrome.
    6. (Optional) Click Configure Parameters and set the object attributes in the Upload Files window.
    
    Notes:
    Storage Class: Select the storage class for your object as needed. This field is set to STANDARD by default. For more information, see Overview.
    Note:
    If your bucket has MAZ configuration enabled, you can only select an MAZ storage class, such as MAZ_STANDARD. If it also has INTELLIGENT TIERING configuration enabled, you can also select MAZ_INTELLIGENT TIERING.
    Access Permissions: Select the access permission for your object as needed. This field is set to Inherit by default (inheriting permissions of the bucket). For more information, please see Basic Concepts of Access Control.
    Server-Side Encryption: Configure server-side encryption for the object you want to upload. COS will automatically encrypt your data as it is written and decrypt it when you access it. Currently, COS offers two encryption types: SSE-KMS (only available in Beijing, Shanghai, and Guangzhou regions) and SSE-COS. For more information, please see Server-side Encryption Overview.
    Object tag: You can add tags to an object to be uploaded. The object tag is composed of a tag key, (=), and a tag value, such as group = IT. Each object tag is a key-value pair. For more information, see Object Tag Overview.
    Metadata: Object metadata, or HTTP header, is a string sent by the server over HTTP before it sends HTML data to the browser. By modifying HTTP headers, you can modify how the webpage responds as well as certain configurations, such as caching time. Modifying an object's HTTP headers does not modify the object itself. For more information, please see Custom Headers.
    7. Click Upload. You can check the upload progress in Task Completed in the top-right corner of the page. Once the upload is complete, the uploaded object will appear in File List.
    
    Note:
    The task progress in the figure indicates the number of tasks created by the current upload operation. For example, if you perform an upload operation where all 10 files are uploaded successfully, the task progress will be displayed as "Task completed (total: 1; succeeded: 1; failed: 0)".
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24