Bug 241901
| Summary: | Failed to upload file with accept=audio/wav on safaridriver | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Cheng You Bai (:cybai) <cyb.ai.815> |
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bburg, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 11 | ||
Cheng You Bai (:cybai)
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`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/96188804>