multer-storage-cloudinary icon indicating copy to clipboard operation
multer-storage-cloudinary copied to clipboard

Can we do something like streaming the file data and then checking if it went over MAX_SIZE?

Open Aryan3212 opened this issue 2 years ago • 0 comments

Is this a multer/busboy/storage engine problem?

What I want to achieve-

  1. Stop upload and throw error if file size is over MAX_FILE_SIZE.

What is happening-

  1. File attempts to be uploaded regardless of the size and throws error at the end of the stream. Basically during 'end' event.

Aryan3212 avatar Nov 15 '22 12:11 Aryan3212