multer-storage-cloudinary
multer-storage-cloudinary copied to clipboard
Can we do something like streaming the file data and then checking if it went over MAX_SIZE?
Is this a multer/busboy/storage engine problem?
What I want to achieve-
- Stop upload and throw error if file size is over MAX_FILE_SIZE.
What is happening-
- File attempts to be uploaded regardless of the size and throws error at the end of the stream. Basically during 'end' event.