Hi everyone,
I’m trying to set validation on mediafinder, so that the user could only choose .webp mime types, but I can’t get it to work - even if file has webp mime type I still get “has to be of webp type” when trying to save object. Any ideas ? Or is it that I cant set it on mediafinder, but only on fileupload ?
Hi @franxxx
So we can better understand the issue, walk us through how you’ve configured October so the user could only choose .webp mime types.
Hi @daftspunk ,
I tried to set something like that on my blueprint field:
validation: mimes:webp, so that the field I wanted to be validated looks like that:
banner:
tab: Photos
label: Banner
type: fileupload
mode: image
maxFiles: 1
required: true
validation: mimes:webp
Hi @franxxx
Try this one
banner:
tab: Photos
label: Banner
type: fileupload
mode: image
maxFiles: 1
mimeTypes: webp
validation: "mimes:webp"
This should give both server-side and client-side validation.
1 Like
Hey @daftspunk,
Works like a charm, thank You!
1 Like