请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

视频文件上传失败

swoole 配置修改如下,
‘buffer_output_size’ => 16 * 1024 * 1024,
‘package_max_length’ => 16 * 1024 * 1024,

php.ini配置也做了相应的大小限制修改,仍然失败,文件处理代码如下图片描述

正在回答 回答被采纳积分+3

2回答

hwkkevin 2020-03-07 09:17:59

nginx限制上传视频的大小,修改一下nginx就行了

0 回复 有任何疑惑可以回复我~
singwa 2019-08-06 12:57:09

您好。文件上传失败 有错误提示什么的吗? 先看看有没有错误提示。

0 回复 有任何疑惑可以回复我~
  • 提问者 沉睡的芒果 #1
    Could not get any response
    There was an error connecting to http://192.168.1.8:9501/api/upload/file.
    Why this might have happened:
    The server couldn't send a response:
    Ensure that the backend is working properly
    Self-signed SSL certificates are being blocked:
    Fix this by turning off 'SSL certificate verification' in Settings > General
    Proxy configured incorrectly
    Ensure that proxy is configured correctly in Settings > Proxy
    Request timeout:
    Change request timeout in Settings > General
    回复 有任何疑惑可以回复我~ 2019-08-06 13:07:45
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信