Where to put dynamically added pictures?
Unanswered
Crucian carp posted this in #help-forum
Crucian carpOP
I have an application in which I save images in the system. I have now saved these images in the public folder, but unfortunately this is only loaded when the app starts and so I cannot access the dynamically added images. Is there a solution for this or should I save the images somewhere else?
4 Replies
@Crucian carp I have an application in which I save images in the system. I have now saved these images in the public folder, but unfortunately this is only loaded when the app starts and so I cannot access the dynamically added images. Is there a solution for this or should I save the images somewhere else?
Do you serve your app with vercel?
@B33fb0n3 Do you serve your app with vercel?
Crucian carpOP
No, I host it on an own VPS
@Crucian carp No, I host it on an own VPS
I cannot access thethen why can't you access?
@Crucian carp I have an application in which I save images in the system. I have now saved these images in the public folder, but unfortunately this is only loaded when the app starts and so I cannot access the dynamically added images. Is there a solution for this or should I save the images somewhere else?
you have to use a route handler or an api route to use fs to get and serve the file.
public cannot be written to.