/node-FileUpload

Primary LanguageCSSMIT LicenseMIT

Node - Upload File with Multer

Few steps for creating a simple HTML + NodeJS/Express + Multer upload file example.

If you need help, call me: Twitter, Medium

What I need ?

  • SublimeText or other file editor
  • NPM
  • Node JS
  • Express, node network app framework
  • Multer, middleware for handling multipart/form-data

Installation

Fist, install NPM for Node.JS managing packages. ( Just make sure, this is a Ubuntu example )

sudo apt-get install npm

Then, install Node.js

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Download the project, and inside the folder, just run for dependences installation

$ npm install

Test

In app.js file, I configurated the http PORT to 3000, you can change as you wanted, so, in this example, when start this example, it will be released in localhost:3000 address :)

So, open your favorite Terminal and run these command.

$ node app

Todos

Give me some ideias :P

License

MIT Free Software, Free Examples, Free hugs!