提交 3ce37cf8 编写于 作者: A Anne_LXM

Update storage.md

上级 69f9f026
......@@ -71,13 +71,13 @@ uniCloud腾讯云版支持云存储的文件权限。当上传的文件不希望
#### 请求参数
**Object object**
|参数名 |类型 |必填 |默认值 | 说明 |平台差异说明 |
|:-: |:-: |:-: |:-: |:--------------------------------------------------------------------------------------------------------------:|:-: |
|filePath |String |是 |- | 要上传的文件对象 |- |
|cloudPath |String |是 |- | 使用支付宝小程序云或腾讯云时,表示文件的绝对路径,包含文件名。<br />使用阿里云时,`cloudPath`为云端文件名,传`cloudPathAsRealPath: true`可以让cloudPath作为文件存储路径 |- |
|cloudPathAsRealPath|Boolean |否 |false | 是否以`cloudPath`作为云端文件绝对路径 |仅阿里云支持 |
|fileType |String |- |- | 文件类型,支付宝小程序、钉钉小程序必填,可选image、video、audio |- |
|onUploadProgress |Function |否 |- | 上传进度回调 |- |
|参数名 |类型 |必填 |默认值 | 说明 |平台差异说明 |
|:-: |:-: |:-: |:-: |:-|:-: |
|filePath |String |是 |- | 要上传的文件对象 |- |
|cloudPath |String |是 |- | 使用支付宝小程序云或腾讯云时,表示文件的绝对路径,包含文件名。<br/>使用阿里云时,`cloudPath`为云端文件名,传`cloudPathAsRealPath: true`可以让cloudPath作为文件存储路径|- |
|cloudPathAsRealPath|Boolean |否 |false | 是否以`cloudPath`作为云端文件绝对路径 |仅阿里云支持 |
|fileType |String |- |- | 文件类型,支付宝小程序、钉钉小程序必填,可选image、video、audio|- |
|onUploadProgress |Function |否 |- | 上传进度回调 |- |
**注意**
......@@ -554,11 +554,11 @@ HBuilderX 3.1.0之前版本如使用阿里云,请在客户端通过`uniCloud.u
**uploadFileOptions参数说明**
| 字段 | 类型 | 必填|默认值 | 说明 |平台差异说明 |
| --- | --- | --- |--- |----------------------------------------------------------------------------------------------------------|--- |
| cloudPath | string| 是 |- | 使用腾讯云或支付宝小程序云时,表示文件的绝对路径,包含文件名。使用阿里云时,`cloudPath`为云端文件名,传`cloudPathAsRealPath: true`可以让cloudPath作为文件存储路径 | |
| fileContent | - | 是 |- | 文件内容,请看下方说明 | |
|cloudPathAsRealPath|Boolean|否 |false | 是否以`cloudPath`作为云端文件绝对路径 |仅阿里云支持 |
| 字段 | 类型 | 必填|默认值 | 说明 |平台差异说明 |
| --- | --- | --- |--- |:----|--- |
| cloudPath | string| 是 |- | 使用腾讯云或支付宝小程序云时,表示文件的绝对路径,包含文件名。<br/>使用阿里云时,`cloudPath`为云端文件名,传`cloudPathAsRealPath: true`可以让cloudPath作为文件存储路径 | |
| fileContent | - | 是 |- | 文件内容,请看下方说明 | |
|cloudPathAsRealPath|Boolean|否 |false | 是否以`cloudPath`作为云端文件绝对路径 |仅阿里云支持 |
**说明**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册