简体   繁体   English

iOS 上的语音备忘录文件是什么内容类型?

[英]What Content-Type are Voice Memo files on iOS?

In IOS, if you take a Voice Memo, you can Save To Files it from the share dialog.在 IOS 中,如果您使用语音备忘录,您可以从共享对话框中将其保存到文件中。 This puts it on your iphone as a file.这会将其作为文件放在您的 iPhone 上。

I am building a mobile web form with a file picker.我正在构建一个带有文件选择器的移动 web 表单。 I am trying to make it so that the accept= of the file picker will pick up voice memo files.我正在尝试使文件选择器的 accept= 能够拾取语音备忘录文件。

Currently, accept="audio/*" does NOT allow selection of the voice memo file.目前,accept="audio/*" 不允许选择语音备忘录文件。 Accept="*" does. Accept="*" 可以。

So the correct answer must be that the content-type is some other content type and not audio/*.所以正确的答案一定是 content-type 是一些其他的内容类型而不是 audio/*。 Can anybody shed light on what it is?任何人都可以阐明它是什么吗?

Testing with https://htmlstrip.com/mime-file-type-checker on my iPhone, recorded a voice file, saved file and uploaded, this site tells me its:在我的 iPhone 上使用https://htmlstrip.com/mime-file-type-checker进行测试,录制语音文件,保存文件并上传,这个网站告诉我它:

audio/x-m4a

Also perhaps the component/lib for the file picker you're using doesn't support the particular filetype, or it's filtering it internally.此外,您正在使用的文件选择器的组件/库可能不支持特定的文件类型,或者它在内部对其进行过滤。 Not sure what you're using there, but in vanilla HTML this seems doable不知道你在那里使用什么,但在香草 HTML 这似乎是可行的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM