validator
validator copied to clipboard
How to check file extension (MIME Types) when upload file
V9
How to check file extension (MIME Types) when upload file
I would like to check file upload is matching mime types, please help
@ivybridge-3c33 can you provide more detail and an example of what you mean, the original ask is a little vague.
@ivybridge-3c33 can you provide more detail and an example of what you mean, the original ask is a little vague.
@deankarn
example use case validation
type Photo struct { Photo string
validate:"mimes=jpeg,bmp,png"}
@deankarn help
@ivybridge-3c33 you got a solution for this?