天天看點

uniapp雲存儲{

上傳圖檔到雲存儲。

報錯:{"errMsg":"cloudPath不合法"}

原因:​<code>​cloudPath​</code>​ - ​<code>​使用阿裡雲時,cloudPath為雲端檔案名,請勿使用非法字元​</code>​

​<code>​  (cloudPath:res.tempFilePaths[0]+res.tempFiles[0].name--&gt;是不合法的)​</code>​

解決方法:改為cloudPath:res.tempFiles[0].name