A ContentTypeParser attempts to return the mime type of a given file. It
receives the first chunk of the file data and the file name, if it is
available. The function can be sync or async and if it returns/resolves to
undefined, application/octet-stream will be used.
A ContentTypeParser attempts to return the mime type of a given file. It receives the first chunk of the file data and the file name, if it is available. The function can be sync or async and if it returns/resolves to
undefined
,application/octet-stream
will be used.