I just upload a image or a document to mi node.js server with this code :
app.use(multer({ dest: './uploads/',
rename: function (fieldname, filename) {
return filename+Date.now();
},
onFileUploadStart: function (file) {
console.log(file.originalname + ' is starting ...')
},
onFileUploadComplete: function (file) {
console.log(file.fieldname + ' uploaded to ' + file.path)
done=true;
}
}));
But I also need to everytime i upload content, a html table update with the content and permit to download it.. Can anybody please help me or tell me where can i find something that help me with this..
Thanks
Aucun commentaire:
Enregistrer un commentaire