Meta Box
Support Forum
Support › General › Restrict file type with File Upload fieldResolved
I am using the basic file upload field (not Wp media uploader), and want to limit the uploaded filetypes to only JPG and PNG.
Is this possible?
Hi,
Currently, it is not possible. There is no option to restrict the file type when uploading with the field type file_upload. You can use another field type like file_advanced to use the WP media upload and filter hook upload_mimes to restrict file type. Read more on the documentation https://developer.wordpress.org/reference/hooks/upload_mimes/ https://docs.metabox.io/fields/file-advanced/
file_upload
file_advanced
upload_mimes
Its kinda of an imporant and basic thing... Are you gonna implement it or what? Jeez!
When using it in the frontend its really useless!
Any plans to add this functionality? It seems essential for any field that allows you to upload to the server. Your primary competitor has had it for at least five years, and this may force me to go to that product (just saying).
Still not possible? Cmon...