Node picture upload module busboy

Image upload module busboy
how to limit the size of picture uploads,
let busboy = new Busboy ({headers: req.headers, limits: {fileSize: 1000000}})

I limited 1m in the constructor and found that large images will still be uploaded, and the result is that only uploaded images are displayed locally

I hope that when the size of the image exceeds the limit, I can throw an exception later. What should I do

Mar.13,2021
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-1b32afc-2be4e.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-1b32afc-2be4e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?