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