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

validation for files/images #100

Open
flinguin opened this issue Mar 9, 2015 · 1 comment
Open

validation for files/images #100

flinguin opened this issue Mar 9, 2015 · 1 comment

Comments

@flinguin
Copy link
Contributor

flinguin commented Mar 9, 2015

if i validate a fileupload for beeing an image or a specific mime-type i encountered a problem when re-editing the record.

if the validation is set to "always" it fails when simply re-editing the record (e.g. just to change another field) - the user would have to delete and re-upload the file to pass validation even if an image was already uploaded.

if the mime/image-validation is hooked to "fresh" it works fine on creation (as expected) but one could upload any file when re-editing the record.

is there any "standard" way around this aside from a custom validator?
anyway ... it would be great if an image/file validation would pass if no file was uploaded but (a valid one) is already on the server.

thanks

@lazychaser
Copy link
Contributor

Hi, yeah, I know about this issue, there's no solution right now, in future there will be completely different way of uploading files.

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

2 participants