Class: Uploadcare::UploadingApi::UploadParams
- Inherits:
-
Object
- Object
- Uploadcare::UploadingApi::UploadParams
- Defined in:
- lib/shrine/storage/uploadcare.rb
Instance Method Summary collapse
-
#extract_mime_type(file) ⇒ Object
fix determining MIME type.
Instance Method Details
#extract_mime_type(file) ⇒ Object
fix determining MIME type
111 112 113 114 |
# File 'lib/shrine/storage/uploadcare.rb', line 111 def extract_mime_type(file) mime_type = MIME::Types.of(file.path).first mime_type.content_type if mime_type end |