Hi all,
I am using a form on the front-end where user can upload a post including the Wysiwyg Editor with file upload. But I want to restrict the type of files they can upload (e.g. only jpg and png) and also the file sizes (e.g. not more then 300 kb).
Are there any filters I can use for this? or how to set this up?
Thanks in advance!
I already use this to restrict the file visibility for different user types.