Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 609 Bytes

File metadata and controls

20 lines (12 loc) · 609 Bytes

nodejs image upload example

This nodejs app use to upload and store image into mysql database, stroing image into folder using MIME stream and image path into database table.

Create db and table

Create 'test' name database into mysql.

Run user.sql file to create user table into 'test' database.

Configure nodejs application

Copy all files of this git repo into 'c:/project_folder' and run below command

c:/project_folder> npm install

Run node js application server

c:/project_folder> node app.js

Test nodejs application

open http://project_name:8080 on browser.