2024-08-27 10:08:47 +08:00

23 lines
737 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 云存储
所谓云存储,就是指可以将文件存储到云端。
在小程序端可以分别调用 `wx.cloud.uploadFile``wx.cloud.downloadFile` 完成上传和下载云文件操作。
在使用组件的时候可能会出现“代码依赖分析无法被其他模块引用”这里可以参阅https://developers.weixin.qq.com/community/develop/article/doc/00020631afc6c8c6f62e7b91855c13?idescene=6
主要就是在 project.config.json 中加入如下两项配置:
```js
ignoreDevUnusedFiles: false ,
ignoreUploadUnusedFiles: false
```
在上传的时候,注意 cloudPath 有命名的限制具体可以参阅https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/storage/naming.html