Which of the following Node.js modules would you typically use to handle file uploads?
- fs
- http
- url
- multer
In Node.js, to handle file uploads, you would typically use the multer module. multer is a middleware for handling multipart/form-data, which is the format used for file uploads. The other options (fs, http, and url) are commonly used for different purposes, such as working with files, creating HTTP servers, and parsing URLs, respectively.
Loading...
Related Quiz
- To run multiple npm scripts sequentially in the specified order, you can use npm run ______.
- What is the role of the extends property in an ESLint configuration file?
- Which of the following scenarios is most suitable for incrementing the 'minor' version in semantic versioning?
- The ______ script in the package.json file is run after the package is uninstalled and before the package is unpublished.
- How can the 'done' callback be used in asynchronous testing with Mocha?