You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this module for post a file stream, it fails:
const data = fs.readFileSync(file_path);
const s = contentstream(data)
// const s = fs.createReadStream(file_path); // this line works well
const formData = {
file: s
};
request.post({
url,
formData
}).on('data', (data) => {
console.log('data===', data.toString('utf8'));
}).on('error', (err) => {
console.error(err);
});
The text was updated successfully, but these errors were encountered:
When I use this module for post a file stream, it fails:
The text was updated successfully, but these errors were encountered: