Restrict files field to upload only certain extension?

Hi there!

I have a files field where I need to allow the picking and uploading of .webm videos only. The picking I can restrict with a query, that works well. However the upload option still allows me to upload any kind of file. How can I restrict this to allow .webm only?


You can do that via a file blueprint, via the accept option.

But how do I associate the file blue print with the files field? There is no template property for the files field, or is there?

No, but an uploads property.


Sorry, I was not aware of that one. Works like a charm. Thanks, Sonja.