Skip to content
Snippets Groups Projects
Commit 63565937 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Skip folder entries (#11)

parent 349a871a
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,10 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
// isn't supported by JSZip (see https://github.com/Stuk/jszip/issues/281)
// using zip.files directly works great!
await commonUtils.asyncObjectForEach(zip.files, async (zipEntry) => {
// skip directory entries
if (zipEntry.dir) {
return;
}
// TODO: find way to check mime type, see https://github.com/Stuk/jszip/issues/626
// if (!this.checkFileType(zipEntry)) {
// return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment