guess_content_type {wand} | R Documentation |
Guess MIME type from filename (extension)
Description
Uses an internal database of over 1,500 file extension-to-MIME mappings to
return one or more associated types for a given input path. If no match is
found, ???
is returned.
Usage
guess_content_type(path)
Arguments
path |
path to file |
Details
Incorporates standard IANA MIME extension mappings and those from servoy-client and stevenwdv's allMimeTypes.json.
Value
character vector
Examples
guess_content_type(system.file("extdat", "test.pdf", package="wand"))
[Package wand version 0.5.0 Index]