node.js - Is there a way to upload an image and serve that image using mean.io nodeJS express? -


i have head nodejs not optimal long running operations. overall application based on mean.io (express , nodejs). though node not ideal operation since long running, still use nodejs module uploading image , serving don't have multiple service technologies. don't want switch java or .net operation, because not ideal nodejs task. there reason node not work this? in particular, how can load images folder belonging particular user in mean.io application? thanks

user multer . multer body parser express. upload multiple files, user multer.any().

you express code should :

    var multer = require('multer');     var multerobj= multer({dest : 'local folder dest'});     app.use('/endpoint upload/*',multerobj.any());      //express code     app.post('/endpoint upload',function(req,res){    //files cotain file (binary) metadata related files.     var files = req.files    } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -