Issue with uploading images
-
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
-
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.jsonThe 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
-
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 permschown -R cloudron:cloudron /uploads
.This just works.
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') -
B BrutalBirdie referenced this topic on
-
Found a real fix. App will be updated.
-
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
-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
-
Oh I think this is why I can't seem to get uploads to R2 working, because this is hardcoded now?
-
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/"
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
-
J james marked this topic as a regular topic
-
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.
-
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. -
Nah, I look into it.
I already handled postiz and I might be faster figuring it out again. -
Found the issue, fixed it, pipelines are running.
App update coming soonTM. -
@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.@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.