上传媒体文件
<p><strong>简要描述:</strong> </p>
<ul>
<li>上传媒体文件</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{Host}/v1/open/App/Upload</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST (multipart/form-data ) </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">file</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">file</td>
<td>上传的文件</td>
</tr>
</tbody>
</table>
<p><strong>提交数据示例</strong></p>
<pre><code>${Host}/v1/open/App/Upload?ProjectId=fe288386-3d26-4eab-b5d2-51eeab82a7f9&amp;Timestamp=1684119987040&amp;AppKey=dedc015fc510e5c7&amp;Sign=Zjk0YTk4NzkzYzBkZmVmMDcxYzhkYjYwZjk5ODE0ZTc0MDdhY2FmODE4OGZmYzIwNTg1ZTdjOTQ3N2I4MTM2MQ==</code></pre>
<p><strong>返回数据说明</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">string</td>
<td>媒体文件上传后获取的唯一标识</td>
</tr>
<tr>
<td style="text-align: left;">success</td>
<td style="text-align: left;">bool</td>
<td>操作是否成功</td>
</tr>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">int</td>
<td>错误代码,1代表成功</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>错误消息</td>
</tr>
</tbody>
</table>
<p><strong>成功</strong></p>
<pre><code>{
&quot;data&quot;: &quot;3f3ae234-5faf-4250-896f-9da983510d99&quot;,
&quot;success&quot;: true,
&quot;error_code&quot;: 1
}</code></pre>
<p><strong>失败</strong></p>
<pre><code>{
&quot;error_msg&quot;: &quot;错误描述&quot;,
&quot;error_code&quot;: 10101, //状态码 非1为失败,
&quot;success&quot;: false
}</code></pre>