# Panel (file_upload)

Upload, delete and download files

# Screenshots

file_upload

# Config

file_upload:

	config:

		# Files
		files:

			# Index (name1, name2, ...., nameN)
			[name]:

				# Required | Type: string | Default: null
				# File title
				title: "Invoice"

				# Required | Type: string | Default: null
				# Name of variable with file IDs to display
				variable: "myvar"

				# Optional | Type: bool | Default: true
				# File description
				notes: true

				# Upload
				upload:

					# Optional | Type: array | Default: []
					# Allowed file extensions
					#
					### Note
					### By default are all extensions allowed
					extensions: {output(["pdf", "doc"])}

					# Optional | Type: int | Default: 0
					# Minimal size of file
					#
					### Note
					### By default is unlimited
					filesize_max: 0

					# Optional | Type: int | Default: 0
					# Maximal size of file
					#
					### Note
					### By default is unlimited
					filesize_min: 0

					# Optional | Type: bool | Default: false
					# Allow upload multiple files
					multiple: false

				# Resize
				resize:

					# Required | Type: int | Default: null
					# Maximal image width
					#
					### Note
					### By default is unlimited
					width: 640

					# Required | Type: int | Default: null
					# Maximal image height
					#
					### Note
					### By default is unlimited
					height: 320

					# Optional | Type: int | Default: 85
					# Image quality
					quality: 85

					# Optional | Type: bool | Default: false
					# Sharpen image after resize
					sharpen: false

		# UI
		ui:

			# Optional | Type: string | Default: small
			# File render behaviour
			#
			### Note
			### Select list, small or large to render files accordingly.
			#
			### Examples
			### - list
			### - small
			### - large
			view: null

			# Optional | Type: string | Default: [1,2,3]
			# Responsive layout
			#
			### Note
			### Select number of columns for mobile, tablet and desktop respectively as array of integers [1,2,4].
			layout: null

			# Optional | Type: string | Default: null
			# Panel title
			title: "Panel title"

			# Optional | Type: string | Default: null
			# Panel description
			description: "Panel description"
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104