diff --git a/backend/plugins/wds-headless-gravityforms/inc/wp-graphql.php b/backend/plugins/wds-headless-gravityforms/inc/wp-graphql.php index fa79f0afd..9c9d38e3a 100644 --- a/backend/plugins/wds-headless-gravityforms/inc/wp-graphql.php +++ b/backend/plugins/wds-headless-gravityforms/inc/wp-graphql.php @@ -76,7 +76,7 @@ function( $field ) use ( &$file_uploads, $form_id ) { $upload = handle_file_upload( $file, $target ); // If error occurs, skip field. - if ( ! $upload ) { + if ( ! $upload || ! $upload['url'] ) { $field['value'] = ''; return $field;