text: import{r as t,o as p,a as o,b as n,d as a,F as l,e,c as r}from"./app.a602c81b.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";const i={},u=n("h1",{id:"\u6587\u4EF6\u4E0A\u4F20",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#\u6587\u4EF6\u4E0A\u4F20","aria-hidden":"true"},"#"),e(" \u6587\u4EF6\u4E0A\u4F20")],-1),d={href:"http://www.voidcc.com/project/el-upload-piecess",target:"_blank",rel:"noopener noreferrer"},k=e("\u5206\u7247\u4E0A\u4F20\u529F\u80FD"),h={href:"https://github.com/fashen007/el-upload-piecess",target:"_blank",rel:"noopener noreferrer"},b=e("el-upload-piecess"),m={href:"https://blog.csdn.net/weixin_44182162/article/details/109236287",target:"_blank",rel:"noopener noreferrer"},_={href:"https://www.cnblogs.com/hubufen/p/14590994.html",target:"_blank",rel:"noopener noreferrer"},f={href:"https://www.jianshu.com/p/2eb91dd9096b",target:"_blank",rel:"noopener noreferrer"},g={href:"https://www.jianshu.com/p/24dee30a21de",target:"_blank",rel:"noopener noreferrer"},y=n("h2",{id:"\u963F\u91CC\u4E91-oss",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#\u963F\u91CC\u4E91-oss","aria-hidden":"true"},"#"),e(" \u963F\u91CC\u4E91 oss")],-1),v={href:"https://help.aliyun.com/product/31815.html",target:"_blank",rel:"noopener noreferrer"},w=e("\u5BF9\u8C61\u5B58\u50A8 OSS"),x={href:"https://help.aliyun.com/document_detail/111263.html",target:"_blank",rel:"noopener noreferrer"},j=e("SDK"),S=n("h2",{id:"\u817E\u8BAF\u4E91-cos",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#\u817E\u8BAF\u4E91-cos","aria-hidden":"true"},"#"),e(" \u817E\u8BAF\u4E91 cos")],-1),N={href:"https://cloud.tencent.com/document/product/436/6268",target:"_blank",rel:"noopener noreferrer"},B=e("SDK\u6587\u6863"),C={href:"https://cloud.tencent.com/document/product/436/35649",target:"_blank",rel:"noopener noreferrer"},q=e("\u5BF9\u8C61\u64CD\u4F5C"),D=n("li",null,[n("p",null,"\u5B89\u88C5 cos-js-sdk-v5")],-1),E=r(`<div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>npm instal cos<span class="token operator">-</span>js<span class="token operator">-</span>sdk<span class="token operator">-</span>v5 <span class="token operator">--</span>save
  </code></pre><div class="line-numbers"><span class="line-number">1</span><br></div></div><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">const</span> cos <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">COS</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  	<span class="token literal-property property">SecretId</span><span class="token operator">:</span> <span class="token string">&#39;&#39;</span><span class="token punctuation">,</span>
  	<span class="token literal-property property">SecretKey</span><span class="token operator">:</span> <span class="token string">&#39;&#39;</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  
  cos<span class="token punctuation">.</span><span class="token function">putObject</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  	<span class="token literal-property property">Bucket</span><span class="token operator">:</span> <span class="token string">&#39;\u5B58\u50A8\u6876\u540D\u79F0&#39;</span><span class="token punctuation">,</span>
  	<span class="token literal-property property">Region</span><span class="token operator">:</span> <span class="token string">&#39;\u5730\u533A\u7B80\u5199&#39;</span><span class="token punctuation">,</span>
  	<span class="token literal-property property">Key</span><span class="token operator">:</span> <span class="token string">&#39;\u6587\u4EF6\u8DEF\u5F84+\u6587\u4EF6\u540D&#39;</span><span class="token punctuation">,</span>
  	<span class="token literal-property property">Body</span><span class="token operator">:</span> <span class="token string">&#39;file \u6587\u4EF6\u5BF9\u8C61&#39;</span><span class="token punctuation">,</span>
  	<span class="token function-variable function">onProgress</span><span class="token operator">:</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">progressData</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  		console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>progressData<span class="token punctuation">)</span>
  	<span class="token punctuation">}</span> 
  <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">err<span class="token punctuation">,</span> data</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// \u4E0A\u4F20\u540E\u7684\u56DE\u8C03</span>
  	<span class="token comment">// \u5904\u7406\u4E0A\u4F20\u5931\u8D25</span>
  	<span class="token keyword">if</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span> <span class="token punctuation">{</span>
  		console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
  	<span class="token punctuation">}</span>
  	<span class="token comment">// \u5904\u7406\u6210\u529F</span>
  	console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>data<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br></div></div><h2 id="\u4E03\u725B\u4E91" tabindex="-1"><a class="header-anchor" href="#\u4E03\u725B\u4E91" aria-hidden="true">#</a> \u4E03\u725B\u4E91</h2><h3 id="\u5C0F\u7A0B\u5E8F\u540E\u53F0\u5730\u5740\u914D\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u5C0F\u7A0B\u5E8F\u540E\u53F0\u5730\u5740\u914D\u7F6E" aria-hidden="true">#</a> \u5C0F\u7A0B\u5E8F\u540E\u53F0\u5730\u5740\u914D\u7F6E</h3><ul><li>\u5B58\u50A8\u533A\u57DF \u533A\u57DF\u4EE3\u7801 HTTPS \u5730\u5740 <ul><li>\u534E\u4E1C ECN https://up.qbox.me</li><li>\u534E\u5317 NCN https://up-z1.qbox.me</li><li>\u534E\u5357 SCN https://up-z2.qbox.me</li><li>\u5317\u7F8E NA https://up-na0.qbox.me</li></ul></li></ul>`,5);function K(V,I){const s=t("ExternalLinkIcon");return p(),o(l,null,[u,n("ul",null,[n("li",null,[n("a",d,[k,a(s)])]),n("li",null,[n("a",h,[b,a(s)])]),n("li",null,[n("a",m,[a(s)])]),n("li",null,[n("a",_,[a(s)])]),n("li",null,[n("a",f,[a(s)])]),n("li",null,[n("a",g,[a(s)])])]),y,n("ul",null,[n("li",null,[n("a",v,[w,a(s)])]),n("li",null,[n("a",x,[j,a(s)])])]),S,n("ul",null,[n("li",null,[n("p",null,[n("a",N,[B,a(s)])])]),n("li",null,[n("p",null,[n("a",C,[q,a(s)])])]),D]),E],64)}var z=c(i,[["render",K]]);export{z as default};
  