Forward form including upload files to a 3rd party via Gravity Form Webhooks plugin

Hi,

I have done something like this:

add_filter( 'gform_webhooks_request_data', 'custom_gform_webhooks_modify_data', 10, 4 );
function custom_gform_webhooks_modify_data( $request_data, $feed, $entry, $form ){
  if ( rgar( $form, 'title' ) !== 'Test' ) {
    return $request_data;
  }

  $cv_file_path = GFFormsModel::get_physical_file_path( rgar( $entry, 6 ) );
  $il_file_path = GFFormsModel::get_physical_file_path( rgar( $entry, 5 ) );

  $request_data['test'] = base64_encode( file_get_contents( $cv_file_path ) );
  $request_data['cv'] = base64_encode( file_get_contents( $cv_file_path ) );
  $request_data['il'] = base64_encode( file_get_contents( $il_file_path ) );

  return $request_data;
}

My 3rd party API saved correctly the base64 encoded file into the “test” field (I was able to manually decode it and get back my file), however, the other two fields that are file field didn’t accept base64 string. I tried with postman, it accept files, but not base64 string. Is there a way to provide something similar to the upload HTML field to the API?