InputfieldFile class
An Inputfield for handling file uploads
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Inputfield
class also inherits all the methods and properties of: Inputfield, WireData and Wire.
Common
Properties
Name | Return | Summary | |
---|---|---|---|
Inputfield | int | Number of rows for description field or 0 to disable DEFAULT: 1 | |
Inputfield | string | Destination path for uploaded file or omit for auto. | |
Inputfield | string | Allowed file extensions, space separated DEFAULT: '' | |
Inputfield | string | Class name(s) for each file item DEFAULT: auto | |
Inputfield | int | Maximum number of files allowed or 0 for no max DEFAULT: 0 | |
Inputfield | int | Maximum file size or 0 for auto detect DEFAULT: 0 | |
Inputfield | bool int | Set to true or 1 to disable ajax uploading DEFAULT: 0 | |
Inputfield | bool int | Set to true to disable collapsed items (like for LanguageTranslator tool or other things that add tools to files) DEFAULT: false | |
Inputfield | bool int | Set to true to disable use of the styled <input type='file'> DEFAULT: false | |
Inputfield | bool int | Set to true or 1 to disable multi-language descriptions DEFAULT: 0 | |
Inputfield | bool int | Set to true to disable shortened filenames in output DEFAULT: false | |
Inputfield | bool int | Set to true or 1 to disable uploading to this field DEFAULT: 0 | |
Inputfield | array | File extensions that are whitelisted if any in $extensions are problematic. 3.0.167+ DEFAULT: [] | |
Inputfield | bool int | Whether or not overwrite mode is enabled DEFAULT: false | |
Inputfield | string | Predefined tags DEFAULT: '' | |
Inputfield | bool int | Whether or not unzip is enabled DEFAULT: false | |
Inputfield | int | Set to true or 1 to disable existing file list display, or 2 to also prevent file from having 'temp' status. DEFAULT: 0 | |
Inputfield | bool | Whether or not tags are enabled DEFAULT: false | |
Inputfield | Pagefiles Pagefile null | Value attribute |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.252