解决错误413请求实体太大 [英] Work around Error 413 request entity too large

查看:716
本文介绍了解决错误413请求实体太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事一个项目,该项目允许我们的员工将大文件上传到我们的共享主机并获取下载链接.问题是我们的托管拒绝更改LimitRequestBody以共享托管.有没有其他解决方案可以解决LimitRequestBody或执行此工作的任何其他方式?

I'm working in project that allow to our employee to upload large files to our shared host and getting download link. the problem is that our hosting refuse to change LimitRequestBody for shared hosting. there is any other solution to work around LimitRequestBody or any other way to do this job?

推荐答案

两种可行的方法,即手动块上传或通过工具.

Two ways to get it work, manual chunk upload or by tools.

您可以使用 Real Ajax Uploader 工具.它可以与html5一起使用,文件的上传是通过块完成的,对服务器的性能和鲁棒性的要求很小.

You can use Real Ajax Uploader tool. It can used with html5 the upload of the files is done by chunks, with small request to the server for perfomance and robustness.

或手动将文件拆分为多个块,然后一一上传.您可以使用7-zip分割文件并合并文件.这是一个

Or manually split the files to many chunks then upload them one by one. you can use 7-zip to split file and combine files. here is an tutorial.

对于客户端划分,您还可以参考文件上传;如何利用分块"?

For client split you also refer to File uploads; How to utilize "chunking"?

对于服务器块合并,您可以参考处理plupload的分块上载服务器端 http://www.phpclasses.org/package/8858-PHP-Create-and-merge-Zip-archives-split-in-parts.html

For sever chunk combine you can refer to Handling plupload's chunked uploads on the server-side and http://www.phpclasses.org/package/8858-PHP-Create-and-merge-Zip-archives-split-in-parts.html

希望有帮助.

这篇关于解决错误413请求实体太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆