Bug 241901 - Failed to upload file with accept=audio/wav on safaridriver
Summary: Failed to upload file with accept=audio/wav on safaridriver
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-22 20:42 PDT by Cheng You Bai (:cybai)
Modified: 2022-06-29 20:43 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cheng You Bai (:cybai) 2022-06-22 20:42:40 PDT
While trying to use https://webdriver.io/ to write scripts for uploading wav files,
I found I cannot upload it properly if the `accept` attribute is `audio/wav`.
However, if I use `accept=audio/*`, wav files can be uploaded properly.

I created a smallest reproducible test case at https://github.com/CYBAI/failed-to-upload-wav.
When you run `pnpm run wdio` in the repo, you will see the second test case (which tries to
upload a wav file to an `input[accept=audio/wav]`) will fail with `One or more files could not be selected`.
Comment 1 Radar WebKit Bug Importer 2022-06-29 20:43:12 PDT
<rdar://problem/96188804>