ฉันพยายามจะใช้สี่เหลี่ยม-แฟ้ม-uploader และอัพโหลดแฟ้มได้ ใน afuConfig ฉันต้องการเพื่อตั้งวิธีการที่จะ โพส แต่ในเทอร์มินัลฉันมีข้อผิดพลาด.
uploadAPI: {
url:"https://example-file-upload-api",
method:"POST",
headers: {
"Content-Type" : "text/plain;charset=UTF-8",
},
}
มันทำให้ฉันเรื่องนี้:
The types of 'uploadAPI.responseType' are incompatible between these types.
Type 'string' is not assignable to type '"blob" | "json" | "arraybuffer" | "text" | undefined'.
ฉันมีปัญหาเหมือนกัสำหรับใช้ responseType เหมือนกัน