I have used the following link to upload files in mongodb which is working in my application : https://dev.to/shubhambattoo/uploading-files-to-mongodb-with-gridfs-and-multer-using-nodejs-5aed
But I need to implement resume and pause functionality while uploading file. File can be of any extension (mostly webm). How do implement it for single file ?
Also if a file is paused, then how do I get the number of chunks uploaded in "fs.chunks" ? In "fs.files", we have the chunkSize maybe that could help ?