From 0502f3ece15cbb4a032c422b1dbb6df7264745b6 Mon Sep 17 00:00:00 2001 From: lllusion3469 <31420484+lllusion3469@users.noreply.github.com> Date: Tue, 3 Jul 2018 18:53:34 +0200 Subject: [PATCH] Make dropzone accept mp4, webm, and swf files to match the rest of the code base For flash files I've used the file extension because the mime type is browser specific and I've found at least 2 different variations for .swf: 1. `application/vnd.adobe.flash-movie`: wikipedia 2. `application/vnd.adobe.flash.movie`: mailcap, firefox some other browser may not even know the .swf extension in the first place --- app/views/uploads/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index c576152b8..e17750c55 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -170,7 +170,7 @@ createImageThumbnails: false, addRemoveLinks: false, maxFiles: 1, - acceptedFiles: "image/jpeg,image/png,image/gif", + acceptedFiles: "image/jpeg,image/png,image/gif,video/mp4,video/webm,.swf", previewTemplate: '