Home  >  Article  >  Backend Development  >  上传策略中如何判断用户是上传的语音还是图片

上传策略中如何判断用户是上传的语音还是图片

WBOY
WBOYOriginal
2016-06-06 20:23:571220browse

我在策略中加入了处理结果持久化,把图片或者语音要缩小,请问如何判断是图片还是语音,是在上传完的回调URL中加入处理结果持久化吗

回复内容:

我在策略中加入了处理结果持久化,把图片或者语音要缩小,请问如何判断是图片还是语音,是在上传完的回调URL中加入处理结果持久化吗

我们不提供判断客户上传的是音频还是图片,您可以在前端分开设置客户选择上传图片还是音视频

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn