Create File
This commit is contained in:
parent
c0afff96b8
commit
1ffbd32ab1
105
src/6da71c1e-119c-4e0d-a309-f3e52ecfa1d1/item.json
Normal file
105
src/6da71c1e-119c-4e0d-a309-f3e52ecfa1d1/item.json
Normal file
@ -0,0 +1,105 @@
|
||||
{
|
||||
"name": "File",
|
||||
"short_description": "Provides an input field for files",
|
||||
"description": "Note: When using the file input type you should always add the attribute enctype=\"multipart\/form-data\" to your form tag. Otherwise, the uploaded files will not be attached correctly.\r\n\r\nNote 2: You can put a soft limit file size by adding a hidden field with name=\"MAX_FILE_SIZE\" and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it.",
|
||||
"properties": {
|
||||
"properties0": {
|
||||
"name": "type",
|
||||
"example": "file",
|
||||
"mandatory": "1",
|
||||
"description": "(mandatory) must be file."
|
||||
},
|
||||
"properties1": {
|
||||
"name": "name",
|
||||
"example": "myfilevalue",
|
||||
"adjustable": "1",
|
||||
"mandatory": "1",
|
||||
"description": "(mandatory) is the unique name of the field."
|
||||
},
|
||||
"properties2": {
|
||||
"name": "label",
|
||||
"example": "Enter some text",
|
||||
"adjustable": "1",
|
||||
"mandatory": "1",
|
||||
"translatable": "1",
|
||||
"description": "(mandatory) (translatable) is the descriptive title of the field."
|
||||
},
|
||||
"properties3": {
|
||||
"name": "description",
|
||||
"example": "Choose an image from your computer with maximum 100KB",
|
||||
"adjustable": "1",
|
||||
"translatable": "1",
|
||||
"description": "(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box."
|
||||
},
|
||||
"properties4": {
|
||||
"name": "default",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) (not translatable) is the default value, but doesn't mean much for a file."
|
||||
},
|
||||
"properties5": {
|
||||
"name": "size",
|
||||
"example": "10",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) is the width of the file box in characters."
|
||||
},
|
||||
"properties6": {
|
||||
"name": "accept",
|
||||
"example": "image\/*",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) Tells the browser what MIME types your form will allow to be uploaded."
|
||||
},
|
||||
"properties7": {
|
||||
"name": "class",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) is a CSS class name for the HTML form field."
|
||||
},
|
||||
"properties8": {
|
||||
"name": "labelclass",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) adds a CSS class for form field's label; for Joomla 2.5.4+"
|
||||
},
|
||||
"properties9": {
|
||||
"name": "disabled",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) HTML equivalent attribute"
|
||||
},
|
||||
"properties10": {
|
||||
"name": "onchange",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) HTML equivalent attribute (javascript use)"
|
||||
},
|
||||
"properties11": {
|
||||
"name": "required",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) For Joomla form validating it to be filled in"
|
||||
},
|
||||
"properties12": {
|
||||
"name": "validate",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) Whether to Joomla validate the field according to rules"
|
||||
},
|
||||
"properties13": {
|
||||
"name": "showon",
|
||||
"example": "",
|
||||
"adjustable": "1",
|
||||
"description": "(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+ https:\/\/joomla.stackexchange.com\/a\/17682\/2166"
|
||||
}
|
||||
},
|
||||
"has_defaults": "1",
|
||||
"datatype": "VARCHAR",
|
||||
"datalenght": "255",
|
||||
"datalenght_other": "",
|
||||
"datadefault": "",
|
||||
"datadefault_other": "",
|
||||
"indexes": "0",
|
||||
"null_switch": "NOT NULL",
|
||||
"store": "0",
|
||||
"guid": "6da71c1e-119c-4e0d-a309-f3e52ecfa1d1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user