Home › Forums › Front-end Issues › How to add an upload field to front end form › Reply To: How to add an upload field to front end form
Hi @efiminzer,
Thanks for the question.
To do this, you will need to include the following code in form’s $options array:
/* (string) Whether to use the WP uploader or a basic input for image and file fields. Defaults to 'wp'
Choices of 'wp' or 'basic'. Added in v5.2.4 */
'uploader' => 'wp'
This will be a choice on whether to have the basic or the wp uploader in the form.
You will then need to include the file field type to the field group that is assigned to the form in the ‘fields’ argument of the form.
I hope this info helps.
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.