From 6b20be587e95a892163f4bfb10f0e87facf24d27 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Wed, 22 Jul 2020 05:01:56 +0800 Subject: [PATCH] Update storage.md --- docs/uniCloud/storage.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/uniCloud/storage.md b/docs/uniCloud/storage.md index 8816fffca..9eb3e8f7c 100644 --- a/docs/uniCloud/storage.md +++ b/docs/uniCloud/storage.md @@ -174,7 +174,7 @@ uniCloud.getTempFileURL({ ## deleteFile(Object object) -删除云端文件,**使用阿里云作为服务商时,不要使用客户端删除云端文件。** +删除云端文件,**使用阿里云作为服务商时,不要使用客户端删除云端文件,为保障安全,应该在云函数中进行相关操作。** #### 请求参数 @@ -230,6 +230,8 @@ uniCloud.deleteFile( |---- |---- | |× |√ | +如使用阿里云,请在前端通过uni-app的上传api进行上传,详见:[https://uniapp.dcloud.io/api/request/network-file?id=uploadfile](https://uniapp.dcloud.io/api/request/network-file?id=uploadfile) + #### 请求参数 **uploadFileOptions参数说明** @@ -388,4 +390,4 @@ let result = await uniCloud.downloadFile({ |图片格式转换 |format |[点击查看](https://help.aliyun.com/document_detail/44703.html?spm=a2c4g.11186623.2.14.274651b0YkQ5hE#concept-mf3-md5-vdb) | |图片质量调节 |quality |[点击查看](https://help.aliyun.com/document_detail/44705.html?spm=a2c4g.11186623.2.15.274651b0YkQ5hE#concept-exc-qp5-vdb) | |图片水印 |watermark |[点击查看](https://help.aliyun.com/document_detail/44957.html?spm=a2c4g.11186623.2.16.274651b0YkQ5hE#concept-hrt-sv5-vdb) | -|视频截帧 |snapshot |[点击查看](https://help.aliyun.com/document_detail/64555.html?spm=a2c4g.11186623.2.17.274651b0YkQ5hE#concept-kz1-cwc-wdb) | \ No newline at end of file +|视频截帧 |snapshot |[点击查看](https://help.aliyun.com/document_detail/64555.html?spm=a2c4g.11186623.2.17.274651b0YkQ5hE#concept-kz1-cwc-wdb) | -- GitLab