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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *