Initial commit
This commit is contained in:
82
application/Espo/Resources/metadata/fields/file.json
Normal file
82
application/Espo/Resources/metadata/fields/file.json
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"params": [
|
||||
{
|
||||
"name": "required",
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"name": "sourceList",
|
||||
"type": "multiEnum",
|
||||
"view": "views/admin/field-manager/fields/source-list"
|
||||
},
|
||||
{
|
||||
"name": "maxFileSize",
|
||||
"type": "float",
|
||||
"tooltip": true,
|
||||
"min": 0
|
||||
},
|
||||
{
|
||||
"name": "accept",
|
||||
"type": "multiEnum",
|
||||
"noEmptyString": true,
|
||||
"allowCustomOptions": true,
|
||||
"options": [
|
||||
"image/*",
|
||||
"audio/*",
|
||||
"video/*",
|
||||
".zip",
|
||||
".pdf",
|
||||
".odt",
|
||||
".ods",
|
||||
".odp",
|
||||
".docx",
|
||||
".xlsx",
|
||||
".pptx",
|
||||
".doc",
|
||||
".xls",
|
||||
".ppt",
|
||||
".rtf",
|
||||
".csv",
|
||||
".md",
|
||||
".txt"
|
||||
],
|
||||
"tooltip": "fileAccept"
|
||||
},
|
||||
{
|
||||
"name": "readOnly",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "readOnlyAfterCreate",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "audited",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"actualFields": [
|
||||
"id"
|
||||
],
|
||||
"notActualFields": [
|
||||
"name"
|
||||
],
|
||||
"converterClassName": "Espo\\Core\\Utils\\Database\\Orm\\FieldConverters\\File",
|
||||
"validationList": [
|
||||
"required",
|
||||
"pattern"
|
||||
],
|
||||
"mandatoryValidationList": [
|
||||
"pattern"
|
||||
],
|
||||
"filter": true,
|
||||
"linkDefs": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Attachment",
|
||||
"skipOrmDefs": true,
|
||||
"utility": true
|
||||
},
|
||||
"personalData": true,
|
||||
"duplicatorClassName": "Espo\\Classes\\FieldDuplicators\\File"
|
||||
}
|
||||
Reference in New Issue
Block a user