From 6d7ca1dacc3adf420386258eec155dfcf61716d5 Mon Sep 17 00:00:00 2001 From: Wan Liuyang Date: Wed, 28 Feb 2018 15:20:41 +0800 Subject: [PATCH] Add acceptedFiles config --- frontend/src/components/Dropzone.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/Dropzone.vue b/frontend/src/components/Dropzone.vue index 0669976..c0d40d0 100644 --- a/frontend/src/components/Dropzone.vue +++ b/frontend/src/components/Dropzone.vue @@ -50,6 +50,10 @@ export default { // We're going to process each file manually (see `accept` below) autoProcessQueue: false, + // Comma separated mime types or file extensions to accept + // see: http://www.dropzonejs.com/#config-acceptedFiles + acceptedFiles: null, + // Here we request a signed upload URL when a file being accepted accept (file, done) { lambda.getSignedURL(file)