doc-exports/docs/obs/umn/obs_03_0307.html
Jawei, Li 43ab92496d OBS UMN 2.0.38.SP5
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-07 09:41:09 +00:00

32 lines
4.8 KiB
HTML

<a name="obs_03_0307"></a><a name="obs_03_0307"></a>
<h1 class="topictitle1">Uploading a File</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 and the name of a newly uploaded file is the same as that of a file in the bucket, the newly uploaded file automatically overwrites the existing file and does not retain the ACL information of the existing file. If the name of the newly uploaded folder is the same as that of a folder in the bucket, the two folders will be merged, and files in the new folder will overwrite namesake files in the old folder.</p>
<p id="obs_03_0307__p2314195319415">If versioning is enabled and the name of a newly uploaded file is the same as that of a file in the bucket, a new version is added to the existing file. 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 about how to create a folder, 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 to be operated. The <strong id="obs_03_0307__b1395123914108">Overview</strong> page of the bucket is displayed.</span></li><li id="obs_03_0307__li51927620"><span>In the navigation pane, click <strong id="obs_03_0307__b47118221194931">Objects</strong>.</span></li><li id="obs_03_0307__li46803166594"><span>Go to the folder to which objects are uploaded. 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></li><li id="obs_03_0307__li4690584614321"><span>Select a storage class. If no storage class is selected, the file will inherit the storage class of the bucket.</span></li><li id="obs_03_0307__li43271656164119"><span>Add a file or folder to be uploaded by dragging it to the Upload Object area.</span><p><p id="obs_03_0307__p5316155610415">You can also click <strong id="obs_03_0307__b9948174410266">add file</strong> in the Upload Object area to select files.</p>
</p></li><li id="obs_03_0307__li74481344102111"><span><strong id="obs_03_0307__b4955291917530">Optional</strong>: Select KMS encryption to encrypt the uploaded file. For details, see <a href="obs_03_0322.html">Uploading a File with Server-Side Encryption</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 is enabled for a 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>