javascript - Require help on how to upload and save an image file in MongoDB using webix and nodejs -


i need upload image file through webix , save in mongodb later display. front end of application webix , end server node js.

i using uploader widget of webix , partly working. need 'upload' property point script handle upload.

below code snippet (referring http://docs.webix.com/api__refs__ui.uploader.html):

{      view: "uploader", value: 'upload file',      name:"files",     link:"mylist",       upload:"localhost:3000:/upload/"   },  {     view:"list",  id:"mylist", type:"uploader",     autoheight:true, borderless:true,  } 

i assumed upload property should assigned rest api takes care of upload action. please let me know if approach right or not. if right, how should taken care in node js save mongodb. using mongoose middleware.


Comments