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

小程序 文章 2022-04-10 04:00 588 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