Files
doc-exports/docs/obs/umn/en-us_topic_0045853663.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

38 lines
8.9 KiB
HTML

<a name="en-us_topic_0045853663"></a><a name="en-us_topic_0045853663"></a>
<h1 class="topictitle1">Uploading a File</h1>
<div id="body1499753333226"><p id="en-us_topic_0045853663__p11143994113759">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="section" id="en-us_topic_0045853663__section37191890113846"><h4 class="sectiontitle">Limitations and Constraints</h4><ul id="en-us_topic_0045853663__ul861573411396"><li id="en-us_topic_0045853663__li146792038154119">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.</li><li id="en-us_topic_0045853663__li1616338124218">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.</li><li id="en-us_topic_0045853663__li2360182919422">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>.</li></ul>
</div>
<div class="section" id="en-us_topic_0045853663__section1750515815466"><h4 class="sectiontitle">Prerequisites</h4><ul id="en-us_topic_0045853663__obs_03_0307_ul13735132573913"><li id="en-us_topic_0045853663__obs_03_0307_li16735122520395">At least one bucket has been created.</li><li id="en-us_topic_0045853663__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="en-us_topic_0045853663__section64292661113931"><h4 class="sectiontitle">Procedure</h4><ol id="en-us_topic_0045853663__obs_03_0307_ol658192291912"><li id="en-us_topic_0045853663__obs_03_0307_li1596440151221"><span>In the bucket list, click the bucket to be operated. The <strong id="en-us_topic_0045853663__obs_03_0307_b1395123914108">Overview</strong> page of the bucket is displayed.</span></li><li id="en-us_topic_0045853663__obs_03_0307_li51927620"><span>In the navigation pane, click <strong id="en-us_topic_0045853663__obs_03_0307_b47118221194931">Objects</strong>.</span></li><li id="en-us_topic_0045853663__obs_03_0307_li46803166594"><span>Go to the folder to which objects are uploaded. Click <strong id="en-us_topic_0045853663__obs_03_0307_b0882125105511">Upload Object</strong>. The <strong id="en-us_topic_0045853663__obs_03_0307_b6293181115555">Upload Object</strong> dialog box is displayed.</span><p><div class="note" id="en-us_topic_0045853663__obs_03_0307_note186461450113113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0045853663__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="en-us_topic_0045853663__obs_03_0307_fig188654349118"><span class="figcap"><b>Figure 1 </b>Uploading objects</span><br><span><img id="en-us_topic_0045853663__obs_03_0307_image10536191814483" src="en-us_image_0153827167.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="en-us_topic_0045853663__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="en-us_topic_0045853663__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="en-us_topic_0045853663__obs_03_0307_p5316155610415">You can also click <strong id="en-us_topic_0045853663__obs_03_0307_b9948174410266">add file</strong> in the Upload Object area to select files.</p>
</p></li><li id="en-us_topic_0045853663__obs_03_0307_li74481344102111"><span><strong id="en-us_topic_0045853663__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="en-us_topic_0045853663__obs_03_0307_note610818411894"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="en-us_topic_0045853663__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="en-us_topic_0045853663__obs_03_0307_li12125192695311"><span>Click <strong id="en-us_topic_0045853663__obs_03_0307_b1918611133719">Upload</strong>.</span></li></ol>
</div>
<div class="section" id="en-us_topic_0045853663__section2680481145652"><h4 class="sectiontitle">Related Operations</h4><p id="en-us_topic_0045853663__p61538082105347">You can specify its storage class when uploading an object or change its storage class after the object is uploaded. The procedure is as follows:</p>
<ol id="en-us_topic_0045853663__ol54196626"><li id="en-us_topic_0045853663__li94697228416"><span>In the bucket list, click the bucket to be operated. The <strong id="en-us_topic_0045853663__obs_03_0307_b1395123914108_1">Overview</strong> page of the bucket is displayed.</span></li><li id="en-us_topic_0045853663__li33462878175550"><span>In the navigation pane, click <strong id="en-us_topic_0045853663__b4277252771182">Objects</strong>.</span></li><li id="en-us_topic_0045853663__li45807892175717"><span>Select the target object and choose <strong id="en-us_topic_0045853663__b16331938401184">More</strong> &gt; <strong id="en-us_topic_0045853663__b4308642191184">Change Storage Class</strong> on the right.</span></li><li id="en-us_topic_0045853663__li65518593175554"><span>Select the desired storage class and click <strong id="en-us_topic_0045853663__b6082718214515">OK</strong>.</span></li></ol>
<div class="note" id="en-us_topic_0045853663__note49933437105659"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="en-us_topic_0045853663__ul48955806162444"><li id="en-us_topic_0045853663__li18917418162447">Objects can be changed from <strong id="en-us_topic_0045853663__b4301807811628">Standard</strong> to <strong id="en-us_topic_0045853663__b87217558711628">Warm</strong> or <strong id="en-us_topic_0045853663__b180206230911628">Cold</strong> storage class, or from <strong id="en-us_topic_0045853663__b15936610311643">Warm</strong> to <strong id="en-us_topic_0045853663__b10074348111643">Standard</strong> or <strong id="en-us_topic_0045853663__b159720291011643">Cold</strong> storage class, but objects in <strong id="en-us_topic_0045853663__b1218958111650">Cold</strong> storage class must be restored before being changed to <strong id="en-us_topic_0045853663__b36831581811650">Standard</strong> or <strong id="en-us_topic_0045853663__b43818910911650">Warm</strong> storage class. Changing from <strong id="en-us_topic_0045853663__b1616715153315">Warm</strong> or <strong id="en-us_topic_0045853663__b716315113314">Cold</strong> to other storage classes incurs restoration fees. Select an appropriate change option based on your actual needs.</li><li id="en-us_topic_0045853663__li377814260432">When the storage class is changed to <strong id="en-us_topic_0045853663__b21767813113">Cold</strong>, the object restoration status changes to <strong id="en-us_topic_0045853663__b478316619">Unrestored</strong>.</li><li id="en-us_topic_0045853663__li20206156162444">You can also configure a lifecycle rule to change the storage class of an object. For details, see <a href="obs_03_0335.html">Configuring a Lifecycle Rule</a>.</li></ul>
</div></div>
</div>
<div class="section" id="en-us_topic_0045853663__section6158112111499"><h4 class="sectiontitle">Follow-up Procedure</h4><p id="en-us_topic_0045853663__p12984525104914">You can click <strong id="en-us_topic_0045853663__b749072512715">Copy Path</strong> on the right of an object to copy the path of the object.</p>
<p id="en-us_topic_0045853663__p277211333145">You can share the path with other users. Then they open the bucket where the object is stored and enter the path in the search box to find the object.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0315.html">Managing Objects</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>