Module: Sufia::GenericFile::MimeTypes::ClassMethods
- Defined in:
- lib/sufia/models/generic_file/mime_types.rb
Instance Method Summary collapse
- #audio_mime_types ⇒ Object
- #image_mime_types ⇒ Object
- #pdf_mime_types ⇒ Object
- #video_mime_types ⇒ Object
Instance Method Details
#audio_mime_types ⇒ Object
42 43 44 45 46 |
# File 'lib/sufia/models/generic_file/mime_types.rb', line 42 def audio_mime_types # audio/x-wave is the mime type that fits 0.6.0 returns for a wav file. # audio/mpeg is the mime type that fits 0.6.0 returns for an mp3 file. ['audio/mp3', 'audio/mpeg', 'audio/wav', 'audio/x-wave', 'audio/x-wav', 'audio/ogg'] end |
#image_mime_types ⇒ Object
30 31 32 |
# File 'lib/sufia/models/generic_file/mime_types.rb', line 30 def image_mime_types ['image/png','image/jpeg', 'image/jpg', 'image/jp2', 'image/bmp', 'image/gif'] end |
#pdf_mime_types ⇒ Object
34 35 36 |
# File 'lib/sufia/models/generic_file/mime_types.rb', line 34 def pdf_mime_types ['application/pdf'] end |
#video_mime_types ⇒ Object
38 39 40 |
# File 'lib/sufia/models/generic_file/mime_types.rb', line 38 def video_mime_types ['video/mpeg', 'video/mp4', 'video/webm', 'video/x-msvideo', 'video/avi', 'video/quicktime', 'application/mxf'] end |