@php-wasm/universalFunctionsinferMimeTypeinferMimeType CallableinferMimeType(path: string): stringNaively infer a file mime type from its path.@todoInfer the mime type based on the file contents. A naive function like this one can be inaccurate and potentially have negative security consequences.Parameterspath: stringThe file pathReturns stringThe inferred mime type.
Naively infer a file mime type from its path.
Infer the mime type based on the file contents. A naive function like this one can be inaccurate and potentially have negative security consequences.