gravity form file upload code example
Example: gravity forms file upload hook
add_filter( 'gform_file_upload_markup', 'change_upload_markup', 10, 4 );
function change_upload_markup( $file_upload_markup, $file_info, $form_id, $field_id ) {
return '<strong>' . esc_html( $file_info['uploaded_filename'] ) . "</strong > <img class='gform_delete' src='" . GFCommon::get_base_url() .
"/images/delete.png'
onclick='gformDeleteUploadedFile({$form_id}, {$field_id }, this);' />";
}