简体   繁体   English

大文件上传服务器问题?

[英]Server issue with large file upload?

I have a dedicated server Linux WHM/Cpanel that hosts a video streaming website. 我有专用的服务器Linux WHM / Cpanel,托管视频流网站。 I have a form to upload videos and I've been trying to upload larger files but failing? 我有一个上传视频的表单,我一直在尝试上传较大的文件,但失败了吗? I've checked error logs and nothing is leading me in the right direction. 我检查了错误日志,但没有任何东西可以引导我朝正确的方向发展。 Below are my php.ini settings 以下是我的php.ini设置

upload_max_filesize = 1200M
post_max_size = 1200M
max_input_vars = 1000
memory_limit = -1
max_file_uploads = 20
max_execution_time = 7200
max_input_time = 7200
max_input_vars = 1000

I can upload a 100MB file just fine but the movies i have can be up to 1gb. 我可以上传100MB的文件,但我拥有的电影可以达到1GB。 I'm using Plupload to upload files. 我正在使用Plupload上传文件。 I've tested several small size files and they upload fine. 我已经测试了几个小型文件,它们上传得很好。 When I try to upload large movies eg 300mb, Plupload returns this error HTTP Error. 当我尝试上传大型电影(例如300mb)时,Plupload返回此错误HTTP错误。 Upload URL might be wrong or doesn't exist. 上载网址可能错误或不存在。 and this is the only clue I have. 这是我唯一的线索。 Plupload uses chunking to split up large files also. Plupload也使用分块来拆分大文件。

This only happens with larger files. 这仅在较大的文件中发生。 It's really a nuisance also, since I have to upload large files all over again to see if my changes are successful or not. 这也确实很麻烦,因为我必须重新上传大文件以查看更改是否成功。

Any ideas? 有任何想法吗? Why would it work with a smaller size file but not larger? 为什么使用较小的文件却不能使用较大的文件? I have no errors to work from. 我没有错误可以工作。

HTTP Error is common when there is something wrong with the files being uploaded. 当上传的文件有问题时,HTTP错误很常见。 Please check your server info with php.ini 请使用php.ini检查您的服务器信息

upload_max_filesize is the limit of any single file. 
post_max_size is the limit of the entire body of the request, 

Sometimes the server requires post_max_size greater than upload_max_filesize I might be wrong but I have to check. 有时服务器要求post_max_size大于upload_max_filesize我可能错了,但我必须检查。

Try debugging the issue removing the chunking first and then later add the chunking part when you remove those HTTP errors. 尝试调试问题,先删除块,然后再在删除这些HTTP错误时添加块部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM