struct Latch::Extractor::MimeFromFile

Included Modules

Defined in:

latch/extractor/mime_from_file.cr

Constructors

Instance Method Summary

Instance methods inherited from module Latch::Extractor

extract(uploaded_file : Latch::UploadedFile, metadata : MetadataHash, **options) : MetadataValue | Nil extract

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def extract(uploaded_file, metadata, **options) : String | Nil #

Extracts the MIME type using the file utility.


[View source]
def initialize #

[View source]