Posts by Thulio Xavier • 1 point
3 posts
-
0
votes1
answer33
viewsQ: Problem with recovering the return of a Promisse
Before I was with a problem that when there was some error in the execution of the query the server stopped and had to restart to get back to work, so giving a search I found how to solve the…
-
-3
votes2
answers90
viewsA: My localhost route:3000/files/ does not show the image ( express.Static does not return the image)
const bodyParser = require('body-parser'); const express = require('express'); const cors = require('cors'); const path = require('path'); const router =…
-
-2
votes2
answers90
viewsQ: My localhost route:3000/files/ does not show the image ( express.Static does not return the image)
In my static file path, it finds the image but returns only its binary and not the image itself for the view. What I want is to be able to view the image when placing in the browser for example:…