怎么获取文件的 mimeType ? 有哪些方式?https://developer.huawei.com/consumer/cn/forum/topic/0203147462268129220?fid=0109140870620153026
mimeType类型参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm\_source=ld246.com参考示例let fileExtention = '.mp3'; let typeId = uniformTypeDescriptor.getUniformDataTypeByFilenameExtension(fileExtention); let typeObj = uniformTypeDescriptor.getTypeDescriptor(typeId); let mimetypes = typeObj.mimeTypes.values()
mimeType类型参考:
https://www.iana.org/assignments/media-types/media-types.xhtml?utm\_source=ld246.com
参考示例