So this topics was specifically about users on iOS 16.7 with issues, those users are on iOS 26.5.2 right? And it works just fine for those users on try.discourse.org?
These users both had success on the Discourse sandbox. One is presumably an older device, the other is running the latest iOS.
The image upload settings are no doubt a factor, but I don’t think they are the actual problem. Those same users had success with uploading larger images to my forum on their desktop computers, and in general I’ve been using those same settings for years and haven’t had any complaints about image uploads until this ESR update.
I just tried on my desktop to upload an image that is 3.5MB, and it worked fine, the automatically resized version on Discourse became 222KB. And that’s exactly how I want it to work, so users don’t have to worry about resizing images, but at the same time they automatically become much smaller on the server. So maybe is there some kind of a difference in the way that iOS reports or enforces the image size limit that is set in Discourse?
EDIT:
This must be the issue. On my desktop I just tested uploading a 75MB (megabyte) image to my forum, and it accepted and resized it just fine.
Both users still cannot upload. Both claim uploading stuck on 0% - tried to disable client-side compression and increase media upload limit size - nothing. Also tried to give them a 8kg png to upload - nothing works. Thanks
Mozilla/5.0 (iPhone; CPU iPhone OS 16_7_16 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.2 Mobile/15E148 Safari/604.1
I’m also seeing their failed attempts to upload images getting left as links with no target in their posts, for example:
[Processing: IMG_1855.jpg…]()
By the way, I reset Max image size KB and Max attachment size KB to their defaults of 10MB, but it doesn’t seem to make any difference.
That is weird, the sandbox is running latest Discourse with nothing special.
If it is happening with client side compression disabled and / or with a 8kB PNG then the problem is elsewhere I’m afraid.
Not much we can do without either access to the instance and to a device that can reproduce or detailed logs from the web console where it is happening tho.
Hmm. Would there be some kind of server-side log for Discourse?
There definitely does seem to be an issue with the recent iOS v26 update and uploading images in general:
But that doesn’t explain why users have success on the Discourse sandbox, and also why one iPhone / iOS 26 user was able to shrink and successfully post a picture on my forum since this problem started.
Yes, at the page /logs.
But that won’t show client side issues.
@Falco can you explain some of the recent changes - maybe from the last 6 months, in relation to file uploads and older iOS devices? maybe we can investigate further and get back to you. Thanks!
Thinking everything over, the most likely differences between one of our Discourse installations and the vanilla sandbox would be in the image upload settings. I didn’t have time to rebuild the app, but don’t forget there’s also the client_max_body_size setting in app.yml. There must be some interaction between that or maybe the specific Nginx version in the Discourse container with the iOS client. I get the impression that the client falsely thinks it’s receiving an error, whereas according to my testing the server is happy to accept large image uploads.