Grokking ExpressJS
Vote

0% completed

​

Uploading Files with Multer

A form that sends a task title and a priority produces a short body such as title=Write+report&priority=high. Add a file input to the same form, and the form must also switch to a completely different format, because a file can contain any bytes, including & and =. This chapter adds file attachments to the task app from the earlier chapters, starting with how such a request is built and how Express reads it.

What an Upload Request Looks Like

A browser sends files with the encoding multipart/form-data

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content