Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 extensions that will be validated during upload, see config_process_file_input()
$file_preview false
$name string HTML input file name attribute

Location

include/config_functions.php lines 744 to 747

Definition

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

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.