File Upload Example With Express Using Multer

This project exists to demonstrate how to upload an image to an express app. For simplicity it just blindly writes the original filename without worrying about overwrites.

Files will be stored in storage/uploads/images.

Local dev

To run the project locally just run yarn && yarn dev or npm install && npm run dev

Postman

There is an included Postman collection file you can use to import into Postman to try this yourself.

Web Form

With the dev server running you can visit localhost:3000 and use the provided web form to upload an image