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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user