-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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);
});
Metadata
Metadata
Assignees
Labels
No labels