fix: Audio block iOS file picker compatibility#137
Conversation
2585fc7 to
a749a94
Compare
iOS Safari's `accept` attribute lacks wildcard `audio/*` support. This patch can be removed once [the issue](WordPress/gutenberg#70119) is addressed in a future release. See: https://stackoverflow.com/a/66859581
a749a94 to
e08f199
Compare
dbdbc63 to
e08f199
Compare
|
@nbradbury contrary to Android, iOS does not publish build output in a CI task until we complete #45. So, I took the liberty of prepping an installable prototype build in wordpress-mobile/WordPress-iOS#24552. Also, be sure to utilize a hosting plan that supports audio uploads when testing—e.g., WordPress.com Premium and above. Lastly, the failed |
Thanks for the note. I noticed this odd behavior as well. It also occurs in the web editor, so I plan to research addressing that later. |
What?
Apply a workaround so that the Audio block allows audio files within iOS' file picker.
Why?
A iOS Safari limitation currently prevents selecting audio files for upload.
Fix CMM-343. Fix #123. Related: WordPress/gutenberg#70119.
How?
iOS Safari's
acceptattribute lacks wildcardaudio/*support. We insteadprovide an explicit list of audio MIME types.
This patch can be removed once the issue
is addressed in a future release.
See: https://stackoverflow.com/a/66859581
Testing Instructions
Tip
Test using the prototype build in wordpress-mobile/WordPress-iOS#24552.
Important
Utilize a hosting plan that allows for uploading audio.
Accessibility Testing Instructions
N/A, no navigation changes.
Screenshots or screencast
N/A, no visual changes.