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.
This commit is contained in:
Toks
2013-03-31 20:25:36 -04:00
parent 9dabc2db67
commit 08b41bfa95

View File

@@ -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"