Support » Plugin: GF Upload to Email Attachment » Attachments on Post forms

  • Just in case anyone is having a problem to attach post images. I have a form where I am adding a custom post type and for some reason it wasn’t attaching the post images. I then took a look at the code and found that by replacing this line of the code:

    $fileupload_fields = GFCommon::get_fields_by_type( $form, array( 'fileupload' ) );

    for this line:

    $fileupload_fields = GFAPI::get_fields_by_type( $form, array( 'fileupload' ), true );

    Solved my problem. Hope helps other people with this problem.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Attachments on Post forms’ is closed to new replies.