上传对象
<p class="shortdesc">创建完存储空间后,您可以将对象上传到存储空间中。</p>
<section class="section prereq" id="uploadobject__prereq_agl_dfq_mlb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">已完成存储空间的创建,请参见<a class="xref" href="/ssr/help/storage/obs/quick_start.createstoragespace" target="_blank">创建存储空间</a>。</p>
</section>
<section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p">目前支持三种上传文件的方式:</p>
<ul class="ul" id="uploadobject__ul_iyq_w2q_mlb">
<li class="li">使用控制台的上传功能,选择一个或多个文件进行上传,上传文件大小限制在5G以内。</li>
<li class="li">利用<a class="xref" href="https://obs-cn-shanghai.yun.pingan.com/pacloud/obs-upload-tool.7z" target="_blank">obs-upload-tool</a>工具,上传不超过48G的大文件,并且支持断点续传。请参见<a class="xref" href="/ssr/help/storage/obs/Commotools.Obsuploadtool" target="_blank">obs-upload-tool</a>。</li>
<li class="li">基于Restful API 接口或SDK编写程序来上传文件。</li>
</ul>
<p class="p">对象的命名需要符合如下规范:</p>
<ul class="ul" id="uploadobject__ul_enz_1fq_mlb">
<li class="li">使用UTF-8编码。</li>
<li class="li">长度必须在1~1023字节之间。</li>
<li class="li">不能以“/”或者“\”字符开头。</li>
</ul>
<div class="note note note_note"><span class="note__title">说明:</span> 对象名称需要区分大小写。</div>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd"> 登录<a class="xref" href="/console/obs/bucket/list" target="_blank">对象存储OBS控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="keyword wintitle">Bucket列表</span>中,找到目标存储空间,单击<span class="ph uicontrol">Bucket名称</span>。</span>
</li><li class="li step stepexpand" id="uploadobject__step_ozg_sfq_mlb">
<span class="ph cmd">选择<span class="ph uicontrol">Object管理</span>页签。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击页面右上角的<span class="ph uicontrol">上传</span>按钮。</span>
<div class="itemgroup info">
<img class="image" id="uploadobject__image_bgw_2gq_mlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20241210163933-1636d09a9e1e.png" width="750">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">
在弹出的上传页面中,单击<span class="ph uicontrol">+</span>号区域,选择一个或者多个要上传的文件,然后单击<span class="ph uicontrol">确定</span>。</span>
<div class="itemgroup info">
<img class="image" id="uploadobject__image_drc_hgq_mlb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20241210163933-110b0dcd96e7.png">
<p class="p">您也可以直接将待上传的一个或者多个对象拖放到<span class="ph uicontrol">+</span>号区域中。</p>
<div class="note note note_note"><span class="note__title">说明:</span>
<p class="p">如果上传对象与存储空间中已有对象重名,将会覆盖已有对象。</p>
<p class="p">文件上传过程中,请勿刷新或关闭页面,否则上传任务会被中断且列表会被清空。</p>
</div>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">完成后,单击<span class="ph uicontrol">确定</span>。</span>
</li></ol></section>
<section class="section result" id="uploadobject__result_ng5_yfq_mlb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">上传完成后,该对象会在对象列表中显示出来。</p>
<div class="note note note_note"><span class="note__title">说明:</span>
<p class="p">目前,控制台默认只展示通过控制台页面上传的文件,通过API/SDK、上传工具、跨地域复制、日志管理等功能写入的文件,默认控制台不展示。可以通过Object
key来搜索文件。</p>
</div>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!