Created
July 15, 2019 16:23
-
-
Save h-hub/c7918f1fee3329530b0190ef64cb3394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Target({TYPE,ANNOTATION_TYPE}) | |
@Retention(RUNTIME) | |
@Constraint(validatedBy = ContentTypeMultipartFileValidator.class) | |
@Documented | |
public @interface ContentType { | |
String message() default "Please upload jpg, png or gif and less than 5MB in size"; | |
Class<?>[] groups() default {}; | |
Class<? extends Payload>[] payload() default {}; | |
String[] value(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment