/file-upload-with-multer

Client and Server for uploading a file with multer & express

Primary LanguageJavaScriptMIT LicenseMIT

Uploading files with Multer in Node

Node and NPM versions I have used

NPM version v6.9.0 and Node version v10.16.3

Table of Contents

Technologies

Technologies I have used are as follows

Installation

It requires Node.js to run.

Install the dependencies and start the server.

$ git clone https://github.com/shahnawaz-pabon/File-Upload-With-Multer.git
$ cd File-Upload-With-Multer/Server
$ npm i
$ node server.js

Open the browser and type https://localhost:9002

Server is running with https now, if you want it run with http just find out below section in the server.js file

httpsServer.listen(9002, LANAccess, function () {

    console.log("\n*****");
    console.log("Server is listening...");
    console.log("*****\n\n\n");

});

Replace httpsServer with httpServer and run node server.js this command in the console.