|
@@ -16,7 +16,6 @@ uppy.use(DragDrop, {
|
|
target: null,
|
|
target: null,
|
|
width: '100%',
|
|
width: '100%',
|
|
height: '100%',
|
|
height: '100%',
|
|
- allowMultipleFiles: true,
|
|
|
|
note: null,
|
|
note: null,
|
|
locale: {
|
|
locale: {
|
|
strings: {
|
|
strings: {
|
|
@@ -27,6 +26,8 @@ uppy.use(DragDrop, {
|
|
})
|
|
})
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+> Note that certain [restrictions set in Uppy’s main options](/docs/uppy#restrictions), namely `maxNumberOfFiles` and `allowedFileTypes`, affect the system file picker dialog. If `maxNumberOfFiles: 1`, users will only be able to select one file, and `allowedFileTypes: ['image/*, .jpg']` means only image or files with `.jpg` extension will be selectable.
|
|
|
|
+
|
|
### `target: null`
|
|
### `target: null`
|
|
|
|
|
|
DOM element, CSS selector, or plugin to place the drag and drop area into.
|
|
DOM element, CSS selector, or plugin to place the drag and drop area into.
|
|
@@ -39,10 +40,6 @@ Drag and drop area width, set in inline CSS, so feel free to use percentage, pix
|
|
|
|
|
|
Drag and drop area height, set in inline CSS, so feel free to use percentage, pixels or other values that you like.
|
|
Drag and drop area height, set in inline CSS, so feel free to use percentage, pixels or other values that you like.
|
|
|
|
|
|
-### `allowMultipleFiles: true`
|
|
|
|
-
|
|
|
|
-Whether to allow user to select multiple files at once via the system file dialog.
|
|
|
|
-
|
|
|
|
### `note: null`
|
|
### `note: null`
|
|
|
|
|
|
Optionally specify a string of text that explains something about the upload for the user. This is a place to explain `restrictions` that are put in place. For example: `'Images and video only, 2–3 files, up to 1 MB'`.
|
|
Optionally specify a string of text that explains something about the upload for the user. This is a place to explain `restrictions` that are put in place. For example: `'Images and video only, 2–3 files, up to 1 MB'`.
|