最近使用 Express 接收 FilePond 套件回傳的 Content-Type: text/plain 請求時,透過 req.body 取得資料時總是拿到空資料。
解法是要另外使用 express.text() 來進行解析:
最近使用 Express 接收 FilePond 套件回傳的 Content-Type: text/plain 請求時,透過 req.body 取得資料時總是拿到空資料。
解法是要另外使用 express.text() 來進行解析:
Update your browser to view this website correctly. Update my browser now