# Image upload issues with certain devices / browsers

**URL:** https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196
**Category:** Bug
**Created:** [June 7, 2024, 9:40pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196 "2024-06-07T21:40:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rlauriston](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rlauriston](https://meta.discourse.org/u/rlauriston)
#### Post date: [June 7, 2024, 9:40pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/1 "2024-06-07T21:40:30Z")

</div>

My users report problems with image uploads. I can’t duplicate the problem with Firefox on Windows or Android so it seems like it’s specific to certain devices / operating systems / browsers.

> **[What is up with photos?](https://www.foodtalkcentral.com/t/what-is-up-with-photos/16448/15)**
>
> Can’t post more than one photo at a time and even sometimes that errors out photo posting is becoming pretty much unusable.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 11, 2024, 3:35am UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/2 "2024-06-11T03:35:01Z")

</div>

Can you ask people on FTC if they can reproduce the issue on this bug topic? (if so what is the exact browser model they are using)

---

<div class="post-metadata">

### Author: ![Genisis](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Genisis](https://meta.discourse.org/u/Genisis)
#### Post date: [June 11, 2024, 1:15pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/3 "2024-06-11T13:15:27Z")

</div>

Anyway you guys can change the topic upload to the one that’s used in chat? I tested it and it uploads way faster in chat (live chat) than to the topic thing (idk what it’s called sorry lol)

---

<div class="post-metadata">

### Author: ![rlauriston](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rlauriston](https://meta.discourse.org/u/rlauriston)
#### Post date: [June 11, 2024, 9:45pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/4 "2024-06-11T21:45:52Z")

</div>

Seems to be specific to more recent versions of iOS (and maybe macOS?). My iPad was working fine with 15.4 but after I updated to 17.5.1 a three-file upload failed after the second with the following error:

```plaintext
/var/www/discourse/lib/discourse.rb:138:in `exec':

```

Doesn’t seem to be browser-specific.

Other users are reporting timeouts, none mentioned error messages so far.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 12, 2024, 12:33am UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/5 "2024-06-12T00:33:16Z")

</div>

Does this happen here as well?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [June 12, 2024, 5:35pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/6 "2024-06-12T17:35:08Z")

</div>

I can’t reproduce it here on an iPad 17.5.1 and Safari/Chrome, no matter how many times I try. However, I do have trouble uploading images on Robert’s forum and two other production instances I own (latest version, safe-mode enabled).

Unfortunately, I don’t have a Mac to see the browser console on iPad.  
It’s unclear where the issue is.

- It fails always with this message:  
_Sorry, there was an error uploading [file name here]. Please try again_
- It can fail with a single image upload (not specific to bulk upload)
- The same image upload can work sometimes, but it fails most of the time.
- Same issue with Chrome (it doesn’t seem specific to the browser)
- I can’t reproduce it on a local dev instance
- Enabling `composer_ios_media_optimisation_image_enabled` makes the issue less frequent, but it still happens in bulk.

🤔

---

<div class="post-metadata">

### Author: ![Genisis](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Genisis](https://meta.discourse.org/u/Genisis)
#### Post date: [June 12, 2024, 7:53pm UTC](https://meta.discourse.org/t/image-upload-issues-with-certain-devices-browsers/311196/7 "2024-06-12T19:53:32Z")

</div>

I noticed uploading via chat function works much better.
