peymanator's avatar

image validation

I have an update form, which I want update user profile. Image field is required and mime type is restricted, but I want to check if user has uploaded image He shouldn't upload it again. If User upload new image, that should be validate too.

I used custom request for user profile

0 likes
1 reply
ftiersch's avatar

So you mean the user shouldn't upload the same image twice?

You could create a custom Validation rule and hash the content of the two images (with md5 for example) and check if the contents are the same.

Please or to participate in this conversation.