Bug 241901

Summary: Failed to upload file with accept=audio/wav on safaridriver
Product: WebKit Reporter: Cheng You Bai (:cybai) <cyb.ai.815>
Component: WebDriverAssignee: 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)
Reported 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`.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-29 20:43:12 PDT
Note You need to log in before you can comment on or make changes to this bug.