• 10 hours
  • Medium

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 11/24/21

Are You Ready to Handle User Files?

Log in or subscribe for free to enjoy all this course has to offer!

Evaluated skills

  • Handle user files in an Express app
  • Question 1

    When configuring  multer  as middleware, which two arguments must be provided?

    • source  and  destination

    • destination  and  filetype

    • filename  and  filetype

    • destination  and  filename

  • Question 2

    Which element does your  multer  middleware add to a request containing a file before passing it along?

    • The  file  object.

    • The  body  object.

    • The  formData  object.

    • The  host  object.

  • Question 3

    How do you put together the base URL segment for files on your server?

    • req.body + '://' + req.host
    • req.protocol + '://' + req.get('host')
    • req.protocol + '://' + req.host
    • req.get('protocol') + '://' + req.get('host')