@@ -44,7 +44,8 @@ window.uploadFile = async function ({ file, uuid, userid, folderid, moFolderid }
const res2 = await fetch('https://pbl.cocorobo.cn/api/pbl/addFile', {
method: 'POST',
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
+ 'Accept': 'application/json',
+ 'Content-Type': 'application/json;charset=UTF-8'
},
body: new URLSearchParams([encoded]).toString()
});