[英]Get image from Backend folder and display it in frontend (React and Node)
i have an upload method that store my image in a folder in backend.我有一个上传方法,可以将我的图像存储在后端的文件夹中。 I'm trying to display it in the frontend but it says to me that it can't accomplish my request becouse folder is out of src.我试图在前端显示它,但它告诉我它无法完成我的请求,因为文件夹不在 src 中。 How can i avoid this issue?我怎样才能避免这个问题?
Is there any kind of method that allow me to access to the path of that folder?有什么方法可以让我访问该文件夹的路径吗? I'm using react and node js.我正在使用反应和节点 js。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.