Support

Account

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.