Closed shanehoban closed 4 months ago
Was just using arbitrary values for testing the file size limit and it always had truncate set to false - and the limit event on file was never getting hit. Was very confusing until I rounded the number.
truncate
false
limit
file
Example that fails:
const bb = Busboy({ headers: event.node.req.headers, limits: { fileSize: (0.005 * 1024 * 1024) } })
Example that works:
const bb = Busboy({ headers: event.node.req.headers, limits: { fileSize: Math.floor(0.005 * 1024 * 1024) } })
Maybe round this on the busboy end to save morons like me time?
Was just using arbitrary values for testing the file size limit and it always had
truncate
set tofalse
- and thelimit
event onfile
was never getting hit. Was very confusing until I rounded the number.Example that fails:
Example that works:
Maybe round this on the busboy end to save morons like me time?