Home › Forums › ACF PRO › File Upload – Allowed file types Not Working › Reply To: File Upload – Allowed file types Not Working
Hi @acf-support
What’s Happening is On selecting a file from the media library or uploading its showing a restricted message but is allowing me to pick the wrong format file and save the same without any error thrown.
No error thrown on save/update
Warning shown on wrong file selection
I’m using php code to include the acf fields
array (
'key' => 'field_18',
'label' => 'Documents:',
'name' => 'documents',
'type' => 'file',
'instructions' => '',
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array (
'width' => 50,
'class' => '',
'id' => '',
),
'return_format' => 'url',
'library' => 'all',
'min_size' => '',
'max_size' => '',
'mime_types' => 'jpg,jpeg',
),
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.