Collections functions
General functions
Render functions
Theme permission functions
Resource functions

config_add_file_input()

Description

Return a data structure that will be used to generate the HTML for
uploading a file

Parameters

ColumnTypeDefaultDescription
$config_var
$label string Label for field
$form_action string URL where the form should post to
$width int 420 Width of the input file HTML tag. Default - 420
$valid_extensions array array Optional array of file extentions that will be validated during upload, see config_process_file_input()
$name string HTML input file name attribute

Location

include/config_functions.php lines 606 to 609

Definition

 
function config_add_file_input($config_var$label$form_action$width 420$valid_extensions = array())
    {   
    return array(
'file_input'$config_var$label$form_action$width$valid_extensions);
    }

This article was last updated 4th October 2022 10:35 Europe/London time based on the source file dated 26th August 2022 16:20 Europe/London time.