Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    Image saving

    Pianificato Fissato Bloccato Spostato Uncategorized
    7 Post 4 Autori 31 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • E Questo utente è esterno a questo forum
      eugene_thedev@community.nodebb.org
      ultima modifica di

      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

      eeeee@community.nodebb.orgE E baris@community.nodebb.orgB julian@community.nodebb.orgJ 6 Risposte Ultima Risposta Rispondi Cita 0
      • eeeee@community.nodebb.orgE Questo utente è esterno a questo forum
        eeeee@community.nodebb.org @eugene_thedev@community.nodebb.org
        ultima modifica di

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

        /public/uploads/
        
        1 Risposta Ultima Risposta Rispondi Cita 0
        • E Questo utente è esterno a questo forum
          eugene_thedev@community.nodebb.org @eugene_thedev@community.nodebb.org
          ultima modifica di

          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 Risposta Ultima Risposta Rispondi Cita 0
          • baris@community.nodebb.orgB Questo utente è esterno a questo forum
            baris@community.nodebb.org @eugene_thedev@community.nodebb.org
            ultima modifica di

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

            1 Risposta Ultima Risposta Rispondi Cita 0
            • E Questo utente è esterno a questo forum
              eugene_thedev@community.nodebb.org @eugene_thedev@community.nodebb.org
              ultima modifica di

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

              1 Risposta Ultima Risposta Rispondi Cita 0
              • baris@community.nodebb.orgB Questo utente è esterno a questo forum
                baris@community.nodebb.org @eugene_thedev@community.nodebb.org
                ultima modifica di

                Yes its compatible with 3.2.x and 4.x

                1 Risposta Ultima Risposta Rispondi Cita 0
                • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                  julian@community.nodebb.org @eugene_thedev@community.nodebb.org
                  ultima modifica di

                  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 Risposta Ultima Risposta Rispondi Cita 0
                  • Primo post
                    Ultimo post