将 3gpp 文件上传到 Web 服务器
我的问题是我已经使用了许多 android 的 http 上传文件的例子。除了 .3gpp 的视频文件之外,它们似乎都可以工作。我对 .mov 视频文件使用相同的代码,并且工作正常。 Web端只是一个PHP脚本。有人知道或已经成功将视频 (.3gpp) 上传到服务器吗?我没有看到任何错误。我使用的代码也适用于图像文件(jpg)。这只是 .3gpp 文件类型。
感谢您能给我的任何帮助..
My question is I have used many examples of http uploads of files for the android. They all seem to work except for video files that are .3gpp. I use the same code for .mov video files and it works OK. On the web side is just a PHP script. Does any know or have successfully uploaded a video (.3gpp) to a server? I don't get any error that I can see. The code I use also works for image files (jpg). It's just the .3gpp file type.
Thanks for any help you can give me..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是3gp吗
你有可能给它错误的扩展名吗?
我想说,你用来上传的方法对于上传的文件来说应该是相当愚蠢的,所以它应该可以工作(正如你所说)。唯一的另一件事是我会尝试匹配文件大小。因此,先制作一张 5mb 的图片,然后制作一个 5 分钟的视频,以确保它是导致错误的文件类型。
我还想说,扩展名中的 3 可能会导致问题(取决于读取它的方式或内容)
isnt it 3gp
is it possible u are giving it the wrong extension?
i would say that the method u are using to upload should be pretty dumb to what files its uploading so it should work (as u said). the only other thing is i would try to match file size. so do a 5mb picture then a 5min video to ensure it is the file type causing the error
i would also say that maybe the 3 in the extension could cause problems (depending on how or what is reading it)