Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Postiz
  3. Issue with uploading images

Issue with uploading images

Scheduled Pinned Locked Moved Postiz
17 Posts 7 Posters 773 Views 7 Watching
  • 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.
  • T Offline
    T Offline
    TheMoodBoardz
    wrote on last edited by
    #1

    Hi, I seem to be having issues with my install of Postiz, when creating a post it appear that it does not display a preview of the image uploaded to the post nor does it attach the image to the post as every platform returns 404

    1 Reply Last reply
    0
    • BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #2

      Thanks for the report. I could reproduce this.

      Web Terminal:

      Mar 30 01:56:03 ⨯ upstream image response failed for https://postiz.cloudron.dev/uploads/2025/03/30/49382b221aa01017ca410af12b0ed4d84.jpeg 404

      Browser Network Logs as HAR:
      https://paste.cloudron.io/yepamidelo.json

      The file in question exists on the system tho:

      root@c9f0d043-77ae-437c-af76-61fac038ff04:/app/code# ls -lah /app/data/data/2025/03/30/
      total 560K
      drwxr-xr-x 2 cloudron cloudron 4.0K Mar 30 00:54 .
      drwxr-xr-x 3 cloudron cloudron 4.0K Mar 30 00:54 ..
      -rw-r--r-- 1 cloudron cloudron 4.2K Mar 30 00:54 49382b221aa01017ca410af12b0ed4d84.jpeg
      -rw-r--r-- 1 cloudron cloudron 541K Mar 30 00:54 9efd2873af79aa2b26100a788471cbd86.jpg
      

      There is a similar issue here: https://github.com/gitroomhq/postiz-app/issues/380

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      2
      • BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by BrutalBirdie
        #3

        @staff

        In app debug mode.
        For some reason and do not ask me why.
        When using /uploads for https://git.cloudron.io/packages/postiz-app/-/blob/master/start.sh?ref_type=heads#L71 and https://git.cloudron.io/packages/postiz-app/-/blob/master/start.sh?ref_type=heads#L73 and creating /uploads and giving perms chown -R cloudron:cloudron /uploads.

        This just works. 🤔
        46179691-dabe-49af-8cb3-a3119068b0e5-image.png

        Sooooo 🤷
        Let's just create /uploads as symlink to /app/data/data 😬
        This feels wrong... but works, I tested it.

        PS: Youtube posting is bricked it seems. But that is from the app it self.
        [Error] posting on youtube TypeError: Cannot read properties of undefined (reading 'releaseURL')

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        3
        • BrutalBirdieB BrutalBirdie referenced this topic on
        • BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #4

          Found a real fix. App will be updated.

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          2
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            Should be fixed with latest released package version. Thanks @BrutalBirdie , good find!

            Hopefully the upstream change will be accepted https://github.com/gitroomhq/postiz-app/issues/712

            1 Reply Last reply
            1
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            • andreasduerenA Offline
              andreasduerenA Offline
              andreasdueren
              wrote on last edited by
              #6

              Oh I think this is why I can't seem to get uploads to R2 working, because this is hardcoded now?

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tetr
                wrote last edited by
                #7

                I'm running into this exact issue again. Perhaps the app updates led to the patch to break it now?

                1 Reply Last reply
                2
                • S Offline
                  S Offline
                  shrey
                  wrote last edited by shrey
                  #8

                  I'm running into the same issue, in the latest version.

                  From my .env ->

                  # Where will social media icons be saved - local or cloudflare.
                  STORAGE_PROVIDER="local"
                  
                  # Your upload directory path if you host your files locally, otherwise Cloudflare will be used.
                  UPLOAD_DIRECTORY="/app/data/data/"
                  
                  

                  e7817443-34aa-4042-b53e-4a0864935ff6-image.png

                  4d8e2d1e-0142-4caa-8249-36074e66b6fd-image.png

                  Browser error:
                  "url" parameter is valid but upstream response is invalid

                  Server error:
                  ⨯ upstream image response failed for https://my-postiz-domain/uploads/2025/07/23/a716efeb832223bc97d8e5a9c3b010ceb.jpeg 404

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #9

                    I will try to reproduce this.

                    1 Reply Last reply
                    0
                    • jamesJ james marked this topic as a regular topic
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #10

                      Ah, it seems this issue is still the same.
                      @BrutalBirdie solution was not yet accepted upstream and the Cloudron package does not include @BrutalBirdie fix.
                      Thus, the image display 404 issue persists.

                      @BrutalBirdie maybe you can bump your PR on GitHub and Cloudron will add this overwrite for now.

                      1 Reply Last reply
                      1
                      • BrutalBirdieB Offline
                        BrutalBirdieB Offline
                        BrutalBirdie
                        Partner
                        wrote last edited by
                        #11

                        It seems someone from here also opened a GitHub issue https://github.com/gitroomhq/postiz-app/issues/886 and linked this topic 😄
                        Since this is hosting specific the issue is somewhat displaced there.
                        Yes it is an issue, but it is specific to the hosting method, in this case Cloudron.
                        It is not "a postiz issue" but I have created a PR to make postiz more flexible for everyone self-hosting.

                        Like my work? Consider donating a drink. Cheers!

                        1 Reply Last reply
                        0
                        • jamesJ Offline
                          jamesJ Offline
                          james
                          Staff
                          wrote last edited by
                          #12

                          Oh wait, your PR is included in the Cloudron package @BrutalBirdie
                          I will have to look into it why it is broken now, again.

                          1 Reply Last reply
                          0
                          • BrutalBirdieB Offline
                            BrutalBirdieB Offline
                            BrutalBirdie
                            Partner
                            wrote last edited by
                            #13

                            Nah, I look into it.
                            I already handled postiz and I might be faster figuring it out again.

                            Like my work? Consider donating a drink. Cheers!

                            1 Reply Last reply
                            1
                            • BrutalBirdieB Offline
                              BrutalBirdieB Offline
                              BrutalBirdie
                              Partner
                              wrote last edited by
                              #14

                              Found the issue, fixed it, pipelines are running.
                              App update coming soonTM.

                              Like my work? Consider donating a drink. Cheers!

                              1 Reply Last reply
                              4
                              • jamesJ Offline
                                jamesJ Offline
                                james
                                Staff
                                wrote last edited by james
                                #15

                                @shrey can you confirm this is now working as expected?
                                I've installed the latest version from the Cloudron app-store and found no more issues with image uploads.

                                S 1 Reply Last reply
                                1
                                • jamesJ james

                                  @shrey can you confirm this is now working as expected?
                                  I've installed the latest version from the Cloudron app-store and found no more issues with image uploads.

                                  S Offline
                                  S Offline
                                  shrey
                                  wrote last edited by
                                  #16

                                  @james Hi. Well, I've tried only with Instagram (Standalone) currently, and that is currently not working due to some other upstream related issue.

                                  Although, wasn't able to complete the full (images related) pipeline, i was able to upload and preview the images within Postiz at least, which worked fine.

                                  1 Reply Last reply
                                  3
                                  • jamesJ Offline
                                    jamesJ Offline
                                    james
                                    Staff
                                    wrote last edited by
                                    #17

                                    fyi: @postiz users
                                    We are aware now this problem is back.
                                    I am currently working on a fix.

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


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Bookmarks
                                    • Search