uniCloud.chooseAndUploadFile({
//type: 'all',
count: this.MAX_IMAGES - this.imageList.length, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album','camera'], //从相册选择
success: res=> {
当type参数不指定或指定为'all‘的时候,会弹出“选择一个聊天”窗口,只能从现有聊天里选择曾经发过的图片、视频
type参数指定为’image‘或’video‘是则是正常弹出相册来选择文件
![](http://img-cdn-tc.dcloud.net.cn/uploads/questions/20210618/b9fe3d98f2fa769ff309bd9a6438de84.png)