Posts by Horácio Pedrosa • 51 points
8 posts
-
0
votes3
answers639
viewsA: How to stop the execution of a code in the nodemon?
If you just want it to run once and not run continuously/observing file changes and updating automatically on save, you should only run the command node nomeDoArquivo.js. If you still prefer to use…
-
0
votes1
answer31
viewsA: Problem capturing object value
To obtain the _id of your data just do the search using the .find() or distinct. There are different ways to return the information as you would like beyond the ones I am quoting, because the _id…
-
0
votes3
answers1466
viewsA: Typeerror: Cannot read Property 'filename' of Undefined
After many weeks of research, I finally managed to solve the problem. The solution is simple req.files[nome-do-campo][0].filename... This way the implementation would look like this:…
-
3
votes3
answers1466
viewsQ: Typeerror: Cannot read Property 'filename' of Undefined
I intend to store the file in the folder uploads and secure in the bank the name of the file. The console.log() show me this: {theBook: undefined, cover: undefined} Stores the image in the folder…
-
-1
votes1
answer137
viewsQ: Validationerror: companies validation failed: county: Path `county` is required
I can’t see the mistake that keeps me from POST (store the data in the database). Also, in the form when selecting a country he should only take his cities, instead he calls all cities and…
-
1
votes4
answers80
viewsA: How to align a smaller text to the top of the parent element?
You can just use the tag HTML <sup> <h3 style="font-size:40px; font-color: #000;"> <span>CVS<sup style="font-size:24px">®</sup> - </span> </h3>…
cssanswered Horácio Pedrosa 51 -
0
votes1
answer54
viewsQ: Search and add table data in form [Nodejs and Mongodb]
I’m trying to load data from 3 tables into a form from routa, but it only takes the data from Municipality in the select of Country. It is supposed to have 3 selects (Country; Country; Municipality)…
-
-4
votes1
answer878
viewsQ: SQLSTATE[08004] [1040] Too Many Connections
This is my connection class: /** * Conn.class [ CONNECTION ] * Abstract connection class. Singleton standard. * Returns a PDO object by the static getConn() method; * * @copyright (c) 2017, Horacio…