node.js

NodeJS and mongoDB – mongoose

I’m trying manipulate a JSON that wasn’t created by me, only uploaded to mongo. In NodeJs I’m trying:
app.get(‘/municipios’, async (req, res) => {
let cidadeSchema = new Schema({}, { strict: false })
let cidades = mongoose.model(‘mu…

Upload files by form using node.js

So I’m trying to upload files by using form in static html file and node.js server. Server load my static HTML file and also respond – there are no errors, but files don’t upload. Below are my files. Maybe they lack something?
Node.js file…