Skip to content

Bug: form_upload second parameter VALUE is not used in source code  #2967

Description

@crustamet

This is the code in form_helper

function form_upload($data = '', string $value = '', $extra = ''): string
{
	$defaults                = [
		'type' => 'file',
		'name' => '',
	];
	is_array($data) || $data = ['name' => $data];
	$data['type']            = 'file';

	return '<input ' . parse_form_attributes($data, $defaults) . stringify_attributes($extra) . " />\n";
}

Surely we see that the $value is not used inside this function. from the source code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions