diff --git a/webapp/components/Upload/index.vue b/webapp/components/Upload/index.vue index 831edd2f8..df9d35d22 100644 --- a/webapp/components/Upload/index.vue +++ b/webapp/components/Upload/index.vue @@ -9,6 +9,7 @@ :style="backgroundImage" @vdropzone-thumbnail="thumbnail" @vdropzone-drop="vddrop" + @vdropzone-error="verror" /> @@ -27,10 +28,11 @@ export default { return { dropzoneOptions: { url: this.vddrop, - maxFilesize: 0.5, + maxFilesize: 3.0, previewTemplate: this.template(), dictDefaultMessage: '', }, + error: false, } }, computed: { @@ -42,19 +44,20 @@ export default { } }, }, + watch: { + error() { + let that = this + setTimeout(function() { + that.error = false + }, 2000) + }, + }, methods: { template() { return `