From 08b41bfa95a55b7f9cbd1cda540da4b402b6d931 Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 31 Mar 2013 20:25:36 -0400 Subject: [PATCH] adds support for image/jpg content type It's not actually a real content type, but it is sometimes used instead of image/jpeg anyway. --- 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 28fb80e8b..eb60182bb 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -206,7 +206,7 @@ class Upload < ActiveRecord::Base def content_type_to_file_ext(content_type) case content_type - when "image/jpeg" + when "image/jpeg", "image/jpg" "jpg" when "image/gif"