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

Add application/zip to allowedMimeTypes (VPU/Apps/Signature#11)

parent 137f2e89
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,12 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { ...@@ -435,6 +435,12 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
} }
render() { render() {
let allowedMimeTypes = this.allowedMimeTypes;
if (this.decompressZip) {
allowedMimeTypes += ",application/zip";
}
return html` return html`
<div id="dropArea"> <div id="dropArea">
<div class="my-form" title="${this.uploadInProgress ? i18n.t('upload-disabled-title') : ''}"> <div class="my-form" title="${this.uploadInProgress ? i18n.t('upload-disabled-title') : ''}">
...@@ -443,7 +449,7 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { ...@@ -443,7 +449,7 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) {
type="file" type="file"
id="fileElem" id="fileElem"
multiple multiple
accept="${mimeTypesToAccept(this.allowedMimeTypes)}" accept="${mimeTypesToAccept(allowedMimeTypes)}"
name='file'> name='file'>
<label class="button is-primary" for="fileElem" ?disabled="${this.disabled}"> <label class="button is-primary" for="fileElem" ?disabled="${this.disabled}">
<vpu-icon style="display: ${this.uploadInProgress ? "inline-block" : "none"}" name="lock"></vpu-icon> <vpu-icon style="display: ${this.uploadInProgress ? "inline-block" : "none"}" name="lock"></vpu-icon>
......
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