# Unable to send files in chat on Safari (Mac/iOS)

**URL:** <https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968>\
**Category:** UI ToolKit\
**Tags:** video-sdk\
**Created:** [July 8, 2025, 3:49pm UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968 "2025-07-08T15:49:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/user96/32/70088_2.png) [@user96](https://devforum.zoom.us/u/user96)\
**Post date:** [July 8, 2025, 3:49pm UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968/1 "2025-07-08T15:49:15Z")

</div>

Hi,

We are using the Zoom UI Toolkit with vanilla JavaScript to build a web application.  
However, we’ve encountered an issue where file uploads in the chat window do not work on Safari (both macOS and iOS).  
The same functionality works correctly on Microsoft Edge (Windows), Google Chrome (Windows), and Google Chrome (Android).

Are there any known restrictions or bugs related to file sending in chat on Safari?

**Environment:**

- Zoom Video SDK UI Toolkit version: 2.2.0-2
- Framework: None (Vanilla JavaScript)
- Affected Platforms:
  - macOS Sequoia 15.5 with Safari 18.5
  - iOS 18.5 with Safari

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [July 8, 2025, 3:56pm UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968/2 "2025-07-08T15:56:07Z")

</div>

Hi @user96

It’s working as expected on macOS Sequoia 15.5 with Safari 18.5:

 ![Screenshot 2025-07-08 at 9.24.36 PM (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/a/dac494cb11d749d681aaaf3aa32dc1b3d1906143.jpeg)  
You can use this link to test: [Zoom Video SDK UI toolkit](https://videosdk.dev/uitoolkit/)

Can you share steps to reproduce?

---

<div class="post-metadata">

**Author:** ![user96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/user96/32/70088_2.png) [@user96](https://devforum.zoom.us/u/user96)\
**Post date:** [July 9, 2025, 8:30am UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968/3 "2025-07-09T08:30:34Z")

</div>

Hi @ekaansh.zoom,

Thanks for checking and for your prompt reply.

I’d like to share more details about our implementation and how to reproduce the issue, as we are still encountering the file upload failure _only_ on Safari (macOS and iOS). The same code works fine in other browsers such as Chrome (Windows/Android) and Edge (Windows).

* * *

## ✅ Setup Details

Although our app does **not** use a Node.js environment or a package manager like `npm` at runtime, we **did extract** the following files from the npm package `@zoom/videosdk-ui-toolkit`:

- `videosdk-ui-toolkit.css`
- `videosdk-ui-toolkit.min.esm.js`

These files are copied into our static asset directory and served as part of a traditional HTML+JS app (no frameworks).

## ✅ Code Overview

### HTML

```auto
<link rel="stylesheet" href="/css/zoom/videosdk-ui-toolkit.css" />
<script type="module">
  import { startZoomSession } from '/js/zoom/zoom-session.js';
  const zoomConfig = {
    language: "ja",
    videoSDKJWT: "[REDACTED]",
    sessionName: "test session",
    userName: "demo user",
        featuresOptions:{
          audio:{
            enable:true
          },
          caption:{
            enable:false
          },
          feedback:{
            enable:false
          },
          header:{
            enable:true
          },
          footer:{
            enable:true
          },
          preview:{
            enable:true,
            isAllowModifyName:false
          },
          recording:{
            enable:false
          },
          settings:{
            enable:true
          },
          share:{
            enable:true
          },
          subsession:{
            enable:false
          },
          users:{
            enable:true
          },
          video:{
            enable:true
          }
        }
      };
  startZoomSession(zoomConfig);
</script>

```

### JavaScript

```auto
export function startZoomSession(config) {
  import("/js/zoom/videosdk-ui-toolkit.min.esm.js").then((uitoolkit) => {
    const container = document.getElementById("sessionContainer");
    uitoolkit.default.joinSession(container, config);
    window.addEventListener("beforeunload", () => {
      uitoolkit.default.leaveSession(container);
    });
  });
}

```

## ❌ Issue (Safari only)

### Steps to reproduce:

1. Load the app in Safari on macOS or iOS
2. Join the session
3. Open the chat panel
4. Attempt to upload a file (e.g. PNG)

### Result:

- File upload fails
- Developer console shows:
  - `WebKitBlobResource error 1`
  - HTTP 400 Bad Request from `zoomfile/upload`
  - Origin header is set to `null` in redirected request

### Sample log:

```auto
Summary
URL: https://zoomap134224161250rwg.cloud.zoom.us/wc/fileupload?filename=sample.png&filesize=59686&rwg=[zoom-upload-host]&cid=[REDACTED]
URL: https://jp01file.zoom.us/zoomfile/upload?channel=4
Status: 400 Bad Request
Source: Network
Address: [Redacted IPv6 Address]:443
Initiator: videosdk-ui-toolkit.min.esm.js:37457

Request
POST /wc/fileupload
Accept: */*
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXXXXXX
Origin: https://[client-app-domain]
Referer: https://[client-app-domain]/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
zmk: [REDACTED JWT TOKEN]
zoom-file-origin: redirect=support_auth

Redirected Response
307 Temporary Redirect
Location: https://jp01file.zoom.us/zoomfile/upload?channel=4
Access-Control-Allow-Origin: https://[client-app-domain]
Access-Control-Allow-Credentials: true
[...Other CORS Headers...]

Request (After Redirect)
POST /zoomfile/upload HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXXXXXX
Origin: null
Referer: https://[client-app-domain]/
Transfer-Encoding: chunked
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
zmk: [REDACTED JWT TOKEN]
zoom-file-origin: redirect=support_auth

Response
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: null
Access-Control-Allow-Credentials: true
Content-Type: application/json
x-unified-error: 2201
x-unified-error-id: FormReader_ReadBodyException
Zoom-File-DOMAIN: jp01file.zoom.us
[...Other Headers...]

Query String Parameters
channel: 4

Request Data
MIME Type: multipart/form-data

```

It seems that Safari (due to redirect behavior) strips the `Origin` header or sets it to `null`, which might be causing CORS validation to fail on Zoom’s upload endpoint.

* * *

If you have any suggestions on how to work around this behavior or if any update is planned to handle Safari’s redirect logic more gracefully, we’d greatly appreciate it.

Let me know if you’d like access to our test environment as well.

Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![user96](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/user96/32/70088_2.png) [@user96](https://devforum.zoom.us/u/user96)\
**Post date:** [July 30, 2025, 9:41am UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968/4 "2025-07-30T09:41:13Z")

</div>

Hi @ekaansh.zoom ,

Just following up on this issue.

We are still experiencing inconsistent behavior when trying to upload files in the chat window using the Zoom UI Toolkit on Safari (both macOS and iOS). Sometimes it works, but other times the file simply doesn’t send, and there’s no error shown.

As an additional note, Chrome on iOS works perfectly fine, so it appears to be specific to Safari.

Do you have any updates or insights on this? We’d appreciate any further suggestions or steps to investigate this further.

Thank you!

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [July 30, 2025, 10:23am UTC](https://devforum.zoom.us/t/unable-to-send-files-in-chat-on-safari-mac-ios/134968/5 "2025-07-30T10:23:09Z")

</div>

Can you please share steps for us to reproduce? The steps you listed previously seem to work for me, wondering if it is a browser config issue. Is this issue intermittent?
