Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大文件上传问题 #155

Open
liyown opened this issue May 7, 2024 · 6 comments
Open

大文件上传问题 #155

liyown opened this issue May 7, 2024 · 6 comments

Comments

@liyown
Copy link

liyown commented May 7, 2024

Describe the bug
在设置了
client_body_timeout 300s;
client_max_body_size 1024m;
之后还是会上传失败,具体表现是卡在100%很久,然后后显示上传失败,但是不通过代理可以正常上传。
真的找不到原因了,请求协助
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@vastsa
Copy link
Owner

vastsa commented May 7, 2024

如果不加代理可以正常上传的话,还是需要检查反代那块的配置

@liyown
Copy link
Author

liyown commented May 7, 2024

主要是设置我标的那两个吧,还有什么配置会影响吗,我其他配置都是默认的

@liyown
Copy link
Author

liyown commented May 7, 2024

我刚刚发现,其实文件已经上传到服务端了,我在后台可以看到,但是前端显示上传失败
image
这是不是后端关闭了连接,浏览器控制台提示错误为:
POST https://liuyaowen.club/share/file/ net::ERR_CONNECTION_CLOSED
难道反向代理会影响响应吗?

@liyown
Copy link
Author

liyown commented May 7, 2024

我排查出问题了,我把文件扩展名字改成.txt就没有问题,同样的文件,.apk就无法返回取件码
image

@vastsa
Copy link
Owner

vastsa commented May 8, 2024

收到,我检查一下

@Mydong
Copy link

Mydong commented May 12, 2024

收到,我检查一下

APK,还有zip压缩包这些也不行。

正常的文本txt、视频等是可以上传的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants