Skip to content
Snippets Groups Projects
Commit e2c5f1df authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Add second mime type for zip files

parent 9b22ade1
No related branches found
No related tags found
No related merge requests found
Pipeline #16178 passed
......@@ -192,7 +192,8 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
}
// check if we want to decompress the zip and queue the contained files
if (this.decompressZip && file.type === "application/zip") {
if (this.decompressZip
&& (file.type === "application/zip" || file.type === "application/x-zip-compressed")) {
// add decompressed files to tempFilesToHandle
await commonUtils.asyncArrayForEach(
await this.decompressZIP(file), (file) => this.sendFileEvent(file));
......@@ -432,7 +433,7 @@ export class FileSource extends ScopedElementsMixin(DBPLitElement) {
let allowedMimeTypes = this.allowedMimeTypes;
if (this.decompressZip) {
allowedMimeTypes += ",application/zip";
allowedMimeTypes += ",application/zip,application/x-zip-compressed";
}
return html`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment