I need help!
I am working on a MEAN project, I have a form that contains an input field type multiple files and the others are the input text, how can I do to save this data to my MongoDB database?
Give me an example, please.
THIS IS MY MODEL
let reportSchema = new mongoose.Schema({
name: {type: String, required : true},
date : {type: String, required : true},
heure : {type : String, required : true},
enterprise : {type: String, required : true},
poste: {type: String, required : true},
description : {type: String, required : true},
materials : {type: String},
objectifs: {type: String},
problemes: {type: String},
comments: {type: String},
files : {type : String}
});
New contributor
Die Davy Bississong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.