Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Support
  3. Image saving

Image saving

Scheduled Pinned Locked Moved Technical Support
7 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E This user is from outside of this forum
    E This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    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

    1 Reply Last reply
    1
    • eeeee@community.nodebb.orgE This user is from outside of this forum
      eeeee@community.nodebb.orgE This user is from outside of this forum
      [email protected]
      wrote last edited by [email protected]
      #2

      That shouldn't happen.
      Photos get saved immediately, maybe something not set up correctly with the path photos are saved at?

      /public/uploads/
      
      1 Reply Last reply
      0
      • E This user is from outside of this forum
        E This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        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

        1 Reply Last reply
        0
        • baris@community.nodebb.orgB This user is from outside of this forum
          baris@community.nodebb.orgB This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          You can use https://github.com/NodeBB-Community/nodebb-plugin-s3-uploads

          1 Reply Last reply
          1
          • E This user is from outside of this forum
            E This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            baris does it work with the 4.3 version? or with any 4+?

            1 Reply Last reply
            0
            • baris@community.nodebb.orgB This user is from outside of this forum
              baris@community.nodebb.orgB This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              Yes its compatible with 3.2.x and 4.x

              1 Reply Last reply
              0
              • julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.orgJ This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups