A
A
aleshkin_n2021-10-12 22:24:54
Node.js
aleshkin_n, 2021-10-12 22:24:54

I uploaded a photo to the server with nodejs, how do I get it by ip?

I uploaded a script with a nodejs application to the selectel server, which uploads photos to the server and saves them in the files folder. However, I can't access these photos on this url: xx.xxx.xx.xxx/files/image.jpg
However, the client side works fine on the same url, only on port 3000, and makes requests to this url on port 5000
What should I do? How to change the url?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ronald McDonald, 2021-10-12
@Zoominger

See if the web server is configured to access this directory.
Check that the port is correct.

D
Drno, 2021-10-12
@Drno

And why did you decide that the files should be available on this path?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question