Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally reject on invalid URL #12

Open
bryanburgers opened this issue Sep 9, 2014 · 1 comment
Open

Optionally reject on invalid URL #12

bryanburgers opened this issue Sep 9, 2014 · 1 comment

Comments

@bryanburgers
Copy link
Contributor

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant