From de80981323c656946cbca9ad0534d7e3bbd33994 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 15 Oct 2013 14:15:28 -0400 Subject: [PATCH] Support "application/shockwave-flash" content type, fixes #2006 This doesn't appear to be a real content type. But some seem to use it anyway, like "image/jpg", so it wouldn't hurt to support. --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 83e5b046f..6d40295b1 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -226,7 +226,7 @@ class Upload < ActiveRecord::Base when "image/png" "png" - when "application/x-shockwave-flash" + when "application/x-shockwave-flash", "application/shockwave-flash" "swf" else