Upload Image using Node js
Server.js var multer = require( 'multer' ); app. post ( '/api/photo' , function ( req , res ) { try { imagedata(req, res, function ( err ) { if (err) { var response = { "success" : "0" , data : { "msg" : "Error uploading file." } } res. end (response); } else { console. log ( "File Upload Successfully" ); var response = { "success" : "1" , data : { "msg" : "file Upload Success fully" } } res. end (response); } }); ...