Closed bridgelegal-1 closed 3 years ago
cosnt sup = () => superagent.post('xxxx');
sup(). attach('file', file path). then(res => { console.log('res: ', res); }). catch(err => { console.log('err: ', err); });
Error: socket hang up will be trigger
My mistake
cosnt sup = () => superagent.post('xxxx');
sup(). attach('file', file path). then(res => { console.log('res: ', res); }). catch(err => { console.log('err: ', err); });
Error: socket hang up will be trigger