(get-file-type file)
(get-file-type file config)
Detects the file type (extension) of a byte array based on magic number signatures. Returns the keyword representing the file extension if detected, otherwise nil.
Detects the file type (extension) of a byte array based on magic number signatures. Returns the keyword representing the file extension if detected, otherwise nil.
(get-mime file)
(get-mime file config)
Detects the MIME type of byte array based on magic number signatures. Returns the MIME type string if detected, otherwise nil.
Detects the MIME type of byte array based on magic number signatures. Returns the MIME type string if detected, otherwise nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close