Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 667 Bytes

File metadata and controls

24 lines (19 loc) · 667 Bytes

Upload image files Node, Express and Multer.js

This example allows for uploading a file by:

  • selecting a file on your machine
  • entering a URL
  • saving to an uploads folder on your server
  • renaming the file with a datestamp
  • limits file size to 1.5 MB (can be changed)

##TODO

  • validation of non-conform files
    • currently allows uploading any kind of file

Start

Type these commands in the terminal inside the folder where you cloned the repository

  • npm install to install node modules
  • nodemon if not installed npm install nodemon -g
  • open http://localhost:3000/

Resources