problem description
upload excel
files at the front end, and receive and process the files at the back end
related codes
/ / Please paste the code text below (do not replace the code with pictures)
async importMember() {
const stream = await this.ctx.getFileStream();
stream.on("data",() =>{
// chunk
})
stream.on("end",() =>{
//
})
stream.on("error",()=>{
//
})
}
what result do you expect? What is the error message actually seen?
The data
event should be executed completely, and the stream
event should be triggered after receiving end
event. Even if there is an error, the error
event should be triggered.
has been looking for a suspected environmental problem all day, and the restriction on nginx
has also been opened, but it is still useless.
ask God for help in parsing