@umbraco-ui/uui-file-dropzone 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +5 -6
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -76,18 +76,17 @@ let UUIFileDropzoneElement = class extends LabelMixin("", LitElement) {
|
|
|
76
76
|
const files = [];
|
|
77
77
|
for (const entry of queue) {
|
|
78
78
|
if (entry?.kind !== "file") continue;
|
|
79
|
-
|
|
79
|
+
const fileEntry = this._getEntry(entry);
|
|
80
|
+
if (!fileEntry) continue;
|
|
81
|
+
if (!fileEntry.isDirectory) {
|
|
80
82
|
const file = entry.getAsFile();
|
|
81
83
|
if (!file) continue;
|
|
82
84
|
if (this._isAccepted(file)) {
|
|
83
85
|
files.push(file);
|
|
84
86
|
}
|
|
85
87
|
} else if (!this.disallowFolderUpload && this.multiple) {
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
const structure = await this._mkdir(dir);
|
|
89
|
-
folders.push(structure);
|
|
90
|
-
}
|
|
88
|
+
const structure = await this._mkdir(fileEntry);
|
|
89
|
+
folders.push(structure);
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
return { files, folders };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-file-dropzone",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-file-dropzone",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "33b3ec557232ea3dfa5d8d636a0a34efb34297dd"
|
|
46
46
|
}
|