Media blocks: Show error message for invalid URLs #3610
Open
Description
Describe the bug
When adding an invalid URL in an Audio block (via "Insert from URL"), it'd be nice to show on error message to let the user know they haven't typed a valid URL, before they tap "apply"
Currently, it shows an error after tapping "apply".
This means if someone typed the URL slightly wrong, they have to go back in an re-type the whole thing.
To Reproduce
Steps to reproduce the behavior:
- Use a WordPress.com site with a plan
- In a Post or Page, add an Audio block
- Tap "Insert from URL" and type an invalid URL or just some random characters
Expected behavior
I would expect the URL to be validated while I'm typing and alert me if it's invalid before I can tap "apply".
Smartphone:
Samsung Galaxy S21, Android 11, WPAndroid 17.5-rc-1
Additional context
Found in beta testing: p5T066-2lr#comment-8584