storage.md 1.2 KB
Newer Older
D
DCloud_LXH 已提交
1 2 3 4
## uploadFile(options) @uploadfile

<!-- UTSUNICLOUDAPIJSON.uploadFile.description -->

D
DCloud_LXH 已提交
5 6
<!-- UTSUNICLOUDAPIJSON.uploadFile.compatibility -->

D
DCloud_LXH 已提交
7 8 9 10 11 12 13 14 15 16 17 18
<!-- UTSUNICLOUDAPIJSON.uploadFile.param -->

<!-- UTSUNICLOUDAPIJSON.uploadFile.returnValue -->

<!-- UTSUNICLOUDAPIJSON.uploadFile.tutorial -->

<!-- UTSUNICLOUDAPIJSON.uploadFile.example -->

## chooseAndUploadFile(options) @chooseanduploadfile

<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.description -->

D
DCloud_LXH 已提交
19 20
<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.compatibility -->

D
DCloud_LXH 已提交
21 22 23 24 25 26 27 28
<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.param -->

<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.returnValue -->

<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.tutorial -->

<!-- UTSUNICLOUDAPIJSON.chooseAndUploadFile.example -->

29 30 31 32
**注意**

- 由于uni-app-x暂不支持选择视频、文件,目前此接口仅能上传图片,即type参数仅能设为`image`

D
DCloud_LXH 已提交
33 34 35 36
## getTempFileURL(options) @gettempfileurl

<!-- UTSUNICLOUDAPIJSON.getTempFileURL.description -->

D
DCloud_LXH 已提交
37 38
<!-- UTSUNICLOUDAPIJSON.getTempFileURL.compatibility -->

D
DCloud_LXH 已提交
39 40 41 42 43 44 45
<!-- UTSUNICLOUDAPIJSON.getTempFileURL.param -->

<!-- UTSUNICLOUDAPIJSON.getTempFileURL.returnValue -->

<!-- UTSUNICLOUDAPIJSON.getTempFileURL.tutorial -->

<!-- UTSUNICLOUDAPIJSON.unicloud-file-api.example -->