Image saving
-
Hello, recently I've came across a problem with the image saving in my nodebb. When the server restarts all the image data is lost. I would like to ask
1.how images are exactly saved?
2. can i save them in the database?
3. or is there any better way to save images on nodebb? Maybe some plugins?Thanks in advance for any discussion/comments on this topic
-
S support@community.nodebb.org shared this topic
-
That shouldn't happen.
Photos get saved immediately, maybe something not set up correctly with the path photos are saved at?/public/uploads/
-
eeeee you are right, photos are saved there. But if there is some crash and the instance is recreated the assets are deleted.
Maybe there is a way to share images via some cloud services such as S3? Or maybe I can save them on database? Basically, any other way except of local one
-
-
baris does it work with the 4.3 version? or with any 4+?
-
Yes its compatible with 3.2.x and 4.x
-
You can use the S3 plugin. However, the underlying problem is that you are using some sort of service with an ephemeral virtual drive. It gets cleared every time the service restarts.
If you don't want to use s3, you will have to set up a volume and mount it to the
/public/uploads
folder. -