__construct()
__construct()
Sets up that the common translation scripts for upload regions on the page have not been rendered yet.
This helper is used to render a drag and drop file upload region
Helpers are classes used to reduce the coding required in Views. They do some computation with the data they are supplied and output HTML/XML
render(string $drop_id, string $form_name, string $elt_id, integer $max_size, string $drop_kind, array $allowed_types, boolean $multiple = false)
Renders the UI needed to do a drag and file upload
string | $drop_id | the id of the HTMLElement used as a target for dropping items in |
string | $form_name | the name attribute of the web form input element used to handle file uploads |
string | $elt_id | the id attribute of the web form input element used to handle file uploads |
integer | $max_size | the maximum size in bytes of the objects allowed to uploaded |
string | $drop_kind | text or image this controls the way the drop zone is handled. Image will draw the to-upload image immediately |
array | $allowed_types | what mime types are legal to upload |
boolean | $multiple | whether multiple files can be selected when file picker used |