Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

110
Vistas
get or load data file in server

i have data json, i receive json data from backend with following format.

{
 id: 2 
 name: file impian
 file : /home/bakcend/go/uploads/173ba017f27b69b42d7e747.png //path backend
}

currently a separate directory, files uploaded from the front end go to the backend folder

- home 
  - backend
    - go
      - uploads
      - api

this is the front end folder

- home
  - front end
    - src
      - view
      - component
      - other

url backend : ...8001 frontend : ...8002

just a different port

how can i load data outside the root front end ?

<b-img src="http://....:8001/home/backend/go/upload/173ba017f27b69b42d7e747.png"></b-img>

I tried it doesn't load

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You should serve static files from your backend. Add some code to your backend for serving static files. for example in node we can do like this: express.js serve static files

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda