clickrain / videolink

Video Link is a Field Type add-on for ExpressionEngine that enables easy and user-friendly embedding of user-defined YouTube and Vimeo videos.
MIT License
15 stars 6 forks source link

Optionally reject on invalid URL #12

Open bryanburgers opened 10 years ago

bryanburgers commented 10 years ago

ExpressionEngine has a validation stage that allows a plugin to reject values. We should use this to reject invalid URLs.

However, for backwards compatibility, we can't just start doing this. So, there should be an option when setting up the fieldtype.

bryanburgers commented 10 years ago

Would this require actually hitting the Vimeo and YouTube servers to check that the key is valid? Or can we just pass some information from the JavaScript validation?

Checking on the server would be more correct. Checking that the JavaScript validation passed would be far easier.