nodejs 使用 request 发送 multipart/form-data
const request = require('request');const fs = require('fs');function sendMultipart(filePath) { const formData = { audio : fs.createReadStream(filePath) }; let options = { method : 'POST', ...
原创
2019-11-04 15:59:49 ·
7775 阅读 ·
3 评论