forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
35 lines
5.4 KiB
HTML
35 lines
5.4 KiB
HTML
<a name="obs_03_0307"></a><a name="obs_03_0307"></a>
|
|
|
|
<h1 class="topictitle1">Uploading an Object</h1>
|
|
<div id="body1499758606806"><p id="obs_03_0307__p46969743213458">This section describes how to upload local files to OBS over the Internet. These files can be texts, images, videos, or any other type of files.</p>
|
|
<div class="note" id="obs_03_0307__note5216882119652"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_03_0307__p137916918369">OBS Console allows you to upload files in a batch. Up to 100 files can be uploaded at a time, with the total size of no more than 5 GB. If the file size exceeds 5 GB, use OBS Browser or the multipart upload of OBS SDKs and APIs for upload.</p>
|
|
<p id="obs_03_0307__p1731415536418">If versioning is disabled for your bucket and you upload a new file with the same name as the one you previously uploaded to your bucket, the new file automatically overwrites the previous file and does not retain its ACL information. If you upload a new folder using the same name that was used with a previous folder in the bucket, the two folders will be merged, and files in the new folder will overwrite namesake files in the previous folder.</p>
|
|
<p id="obs_03_0307__p2314195319415">After versioning is enabled for your bucket, if the new file you upload has the same name as the one you previously uploaded to the bucket, a new file version will be added in the bucket. For details about versioning, see <a href="en-us_topic_0045853504.html">Versioning Overview</a>.</p>
|
|
</div></div>
|
|
<div class="section" id="obs_03_0307__sd7d65d851f1c4a2d8a507d1689a5d358"><h4 class="sectiontitle">Prerequisites</h4><ul id="obs_03_0307__ul13735132573913"><li id="obs_03_0307__li16735122520395">At least one bucket has been created.</li><li id="obs_03_0307__li167391276399">If you want to classify files, you can create folders and upload files to different folders. For details, see <a href="obs_03_0316.html">Creating a Folder</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="obs_03_0307__section1567551415194"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0307__ol658192291912"><li id="obs_03_0307__li1596440151221"><span>In the bucket list, click the bucket you want to operate. The <strong id="obs_03_0307__b144421021120">Overview</strong> page is displayed.</span></li><li id="obs_03_0307__li123641720664"><span>In the navigation pane, choose <strong id="obs_03_0307__b51941856151917">Objects</strong>.</span></li><li id="obs_03_0307__li46803166594"><span>Go to the folder where you want to upload files and click <strong id="obs_03_0307__b0882125105511">Upload Object</strong>. The <strong id="obs_03_0307__b6293181115555">Upload Object</strong> dialog box is displayed.</span><p><div class="note" id="obs_03_0307__note186461450113113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_03_0307__p14504161520198">If the files that you want to upload to OBS are stored in Microsoft OneDrive, it is recommended that the names of these files contain a maximum of 32 characters to ensure compatibility.</p>
|
|
</div></div>
|
|
<div class="fignone" id="obs_03_0307__fig188654349118"><span class="figcap"><b>Figure 1 </b>Uploading objects</span><br><span><img id="obs_03_0307__image10536191814483" src="en-us_image_0153827167.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
<p id="obs_03_0307__p1430017260138"></p>
|
|
</p></li><li id="obs_03_0307__li8341913385"><span>Select a storage class. If you do not specify a storage class, the objects you upload inherit the default storage class of the bucket.</span><p><div class="note" id="obs_03_0307__note27281163408"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_03_0307__p15728186194013">An object can have a different storage class from its bucket. You can specify a storage class for an object when uploading it, or you can change the object storage class after the object is uploaded.</p>
|
|
</div></div>
|
|
</p></li><li id="obs_03_0307__li43271656164119"><span>In the <strong id="obs_03_0307__b120411138146">Upload Object</strong> area, drag and drop the files or folders you want to upload.</span><p><p id="obs_03_0307__p5316155610415">You can also click <strong id="obs_03_0307__b38354538523">add file</strong> in the <strong id="obs_03_0307__b064791710146">Upload Object</strong> area to select files.</p>
|
|
</p></li><li id="obs_03_0307__li74481344102111"><span>(Optional) Select <strong id="obs_03_0307__b16368281536">KMS encryption</strong> to encrypt the uploaded file. For details, see <a href="obs_03_0322.html">Uploading an Object in Server-Side Encryption Mode</a>.</span><p><div class="note" id="obs_03_0307__note610818411894"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_03_0307__obs_03_0306_p062133814520">If the default encryption has been enabled for the bucket, uploaded objects are automatically encrypted.</p>
|
|
</div></div>
|
|
</p></li><li id="obs_03_0307__li12125192695311"><span>Click <strong id="obs_03_0307__b1918611133719">Upload</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0302.html">Getting Started</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |