做了一个录音朗读并上传的小程序,同样的版本和后台服务,当录音超过1分钟的时候?

小程序 文章 2022-04-10 04:00 699 0 全屏看文

AI助手支持GPT4.0

做了一个录音朗读并上传的小程序,同样的版本和后台服务,当录音超过1分钟的时候?Made a small program to record reading and uploading, the same version and background service, when the recording exceeds 1 minute?

做了一个录音朗读并上传的小程序,同样的版本和后台服务,当录音超过1分钟的时候?

做了一个录音朗读并上传的小程序,同样的版本和后台服务,

录音小于大概1分钟的时候,andriod和ios版本都可以正常上传

当录音超过1分钟的时候,ios的小程序可以正常上传文件

安卓版本的小程序就报错了 “uploadFile:fail upload fail:-103:net::ERR_CONNECTION_ABORTED”。

后台java springboot 报错:“Processing of multipart/form-data request failed. Unexpected EOF read on the socket” 。

录音文件只有几十最多几百k,还不到1M。

springboot默认上传的文件大小是10M,我改成了100M也不行

我查了一下说这个EOF问题,是说前端主动或者异常关闭了链接,在文件还没有上传完成的时候。

我修改了小程序的超时设置也不行。

	"networkTimeout":{		"uploadFile": 180000,		"connectSocket":120000	},

这个问题怎么解决呢;

是不是安卓端小程序需要设置什么?

A recording, reading and uploading applet is made. The same version and background service. When the recording is less than about 1 minute, both Android and IOS versions can be uploaded normally. When the recording is more than 1 minute, IOS applet can upload files normally. Android applet reports an error "UploadFile: fail upload fail: - 103: Net:: err_connection_aborted". The background Java springboot reports an error: "processing of multipart / form data request failed. Unexpected EOF read on the socket". The recording files are only dozens, up to hundreds of K, less than 1m. The default file size uploaded by springboot is 10m, but I can't change it to 100m. I checked and said that this EOF problem means that the front end actively or abnormally closed the link before the file upload is completed. I modified the timeout setting of the applet, and it doesn't work. "networkTimeout":{ "uploadFile": 180000, "connectSocket":120000 }, How to solve this problem; What does the Android applet need to set?

回答:

野生的屠夫先生:

切片上传

🔥古再丽🔥:热依拉老师
🔥古再丽🔥:伊努力学习
张军营:

微信版本号8.0.xx

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
有没有可能在不自定义导航栏的情况下,实现首页按钮和返回按钮同时存在?
小程序分享方法图片地址可以是临时路径吗?
wx.showShareImageMenu分享图不能用本地的吗?我换本地图片点击没有分享图片弹窗?
开发者工具上传预览时提示:Error:无效的json文件:error:invalid file:
短信打开小程序能否用其它第三方短信平台来发送?
随便看看
微信开放平台跟公众平台有什么区别? 3607
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9047
如何快速搭建抽奖助手小程序(无需代码知识) 6176
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7471