You can send those files as multipart/form-data from front end to backend and, you can use something like Multer to handle it in the backend. With Multer you can specify a file path (new folder for a user). Then you can get the file path and save it in MongoDB.
you can save it directly in the...