Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!