Home › Forums › Front-end Issues › Frontend form file upload validation › Reply To: Frontend form file upload validation
Hey @acf-support ,
thanks for the reply. The upload field is the following:
{
"key": "field_5793b50551910",
"label": "Vereinssatzung",
"name": "vereinssatzung",
"type": "file",
"instructions": "blabla",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"library": "uploadedTo",
"min_size": "",
"max_size": 7,
"mime_types": "jpg, jpeg, pdf"
},
The front end form is injected like this:
$options = array(
'post_id' => 'user_'.$current_user->ID,
'field_groups' => array('group_5793afe65ba18'),
'return' => get_permalink( get_page_by_path( 'anmeldung-datenfreigabe' ) ),
'submit_value' => 'Weiter',
'honeypot' => true
);
acf_form($options);
Again: I’m utilizing the basic uploader and save all the data to the user meta table. After I select a file with a disallowed file type and submit the form, the page is being redirected and no error is shown.
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.