lib/carrierwave/uploader/proxy.rb in carrierwave-0.9.0 vs lib/carrierwave/uploader/proxy.rb in carrierwave-0.10.0
- old
+ new
@@ -70,8 +70,19 @@
#
def length
size
end
+ ##
+ # Read the content type of the file
+ #
+ # === Returns
+ #
+ # [String] content type of the file
+ #
+ def content_type
+ file.respond_to?(:content_type) ? file.content_type : nil
+ end
+
end # Proxy
end # Uploader
end # CarrierWave