You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<code>document</code>, the file information is displayed.)
106
-
</td>
107
-
<td>
108
-
<code>document</code> | <code>image</code> |
109
-
<code>video</code>
110
-
</td>
111
-
<td>
112
-
<code>document</code>
113
-
</td>
114
-
</tr>
115
-
<tr>
116
-
<td>
117
-
<code>previewTmpl</code>
118
-
</td>
119
-
<td>
120
-
Path to the file's preview <code>.html</code> template
121
-
</td>
122
-
<td>
123
-
String
124
-
</td>
125
-
<td>
126
-
<code>ui/form/element/uploader/preview</code>
127
-
</td>
128
-
</tr>
129
-
<tr>
130
-
<td>
131
-
<code>template</code>
132
-
</td>
133
-
<td>
134
-
The path to the field’s general <code>.html</code>
135
-
template.
136
-
</td>
137
-
<td>
138
-
String
139
-
</td>
140
-
<td>
141
-
<code>ui/form/element/uploader/uploader</code>
142
-
</td>
143
-
</tr>
144
-
<tr>
145
-
<td>
146
-
<code>uploaderConfig</code>
147
-
<ul>
148
-
<li><code>dataType</code>
149
-
</li>
150
-
<li><code>sequentialUploads</code>
151
-
</li>
152
-
<li><code>formData</code>
153
-
</li>
154
-
</ul>
155
-
</td>
156
-
<td>
157
-
Configuration passed to jquery-file-upload plugin:
158
-
<ul>
159
-
<li>type of data
160
-
</li>
161
-
<li>sequential data uploads
162
-
</li>
163
-
<li>additional form data
164
-
</li>
165
-
</ul>
166
-
</td>
167
-
<td>
168
-
Object
169
-
<ul>
170
-
<li>String
171
-
</li>
172
-
<li>Boolean
173
-
</li>
174
-
<li>Object
175
-
</li>
176
-
</ul>
177
-
</td>
178
-
<td>
179
-
<ul>
180
-
<li>
181
-
<code>json</code>
182
-
</li>
183
-
<li><code>true</code>
184
-
</li>
185
-
<li>
186
-
<code>{ 'form_key': window.FORM_KEY }</code>
187
-
</li>
188
-
</ul>
189
-
</td>
190
-
</tr>
191
-
</tbody>
192
-
</table>
10
+
| Title | Description | Type | Default Value |
11
+
| --- | --- | --- | --- |
12
+
|`allowedExtensions`| List of allowed file extensions. For example, `'jpg jpeg gif png svg'`. If set to "false" - then no extension is allowed, "true" - any extension is allowed. | Boolean/String |`false`|
13
+
|`component`| The path to the component’s JS constructor in terms of RequireJS. | String |`'Magento_Ui/js/form/element/file-uploader'`|
14
+
|`dropZone`| CSS selector of a drop zone element. | String |`[data-role=drop-zone]`|
15
+
|`isMultipleFiles`| Defines whether multiple files can be uploaded. | Boolean |`false`|
16
+
|`maxFileSize`| Defines the maximum allowed file size in bytes. | Boolean/Number |`false`|
17
+
|`placeholderType`| Defines the preview type. (When set to `document`, the file information is displayed.) |`document`\|`image`\|`video`|`document`|
18
+
|`previewTmpl`| Path to the file's preview `.html` template | String |`ui/form/element/uploader/preview`|
0 commit comments