Can node receive only part of the uploaded file stream?

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


has been solved, and the problem is hard to laugh or cry.

remind people who may encounter this problem later:

make sure that stream is received on the node side before the value is returned in controller , otherwise the http access will be considered to end, resulting in the halfway end of the uploaded file stream.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8e14e-11ad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8e14e-11ad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?