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

Allow for validating files in multipart forms #1

Closed
albrow opened this issue Dec 27, 2014 · 1 comment
Closed

Allow for validating files in multipart forms #1

albrow opened this issue Dec 27, 2014 · 1 comment

Comments

@albrow
Copy link
Owner

albrow commented Dec 27, 2014

It would be cool if go-data-parser could perform basic validations for files uploaded via multipart form. Reading and validating the data might be overly-complex, but the following features seem reasonable:

  1. Validate the existence of a file in the form a la the current KeyExists method.
  2. Validate the mime type of the file, i.e. check if it is a jpeg file.
@albrow
Copy link
Owner Author

albrow commented Jan 10, 2015

Fixed in version 0.2

@albrow albrow closed this as completed Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant