-
Notifications
You must be signed in to change notification settings - Fork 13
/
schema.json
70 lines (70 loc) · 1.99 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"type": "component",
"metadata": {},
"schema": {
"name": "Budibase-File-Upload",
"friendlyName": "Budibase File Upload",
"description": "A Budibase form component that allows you to upload file and store them within a string in your database. The file is viewable and downloadable. This allows you store your files inside of your SQL or internal DB without using the default solution of a url to MinIO.",
"icon": "FileShare",
"settings": [
{
"type": "field/string",
"key": "field",
"label": "Field"
},
{
"type": "text",
"key": "label",
"label": "Label"
},
{
"type": "number",
"key": "maxSize",
"label": "Max File Size (Bytes)",
"max": 1000000000,
"min": 0
},
{
"type": "number",
"key": "maxFiles",
"label": "Max Number of Files",
"max": 100,
"min": 0
},
{
"type": "text",
"key": "acceptedFiles",
"label": "Accepted File Extensions: (e.g. '.jpg,.png,.pdf')"
},
{
"type": "boolean",
"key": "encodingProtection",
"label": "Encoding Protection - Recommended",
"defaultValue": true
},
{
"type": "boolean",
"key": "useBlobURL",
"label": "Use BlobURL instead of DataURL for opening files - Recommended",
"defaultValue": true
},
{
"type": "event",
"key": "onChange",
"label": "On Change"
},
{
"type": "validation/string",
"label": "Validation",
"key": "validation"
},
{
"type": "boolean",
"label": "Disabled",
"key": "disabled",
"defaultValue": false
}
],
"info": "Created by chungchunwang on GitHub at: https://github.com/chungchunwang/Budibase-File-Upload. You can find detailed instructions there. Please report any issues or feature requests to the GitHub repo (or perhaps star!)."
}
}