简体   繁体   English

PHP上传设置,最大文件上传和块

[英]PHP upload settings, max file upload and chunks

My host is on a shared server so therefore i cannot change the php.ini. 我的主机在共享服务器上,因此我无法更改php.ini。 My goal is to upload files of upto 100mb but the servers upload_max_filesize is set to 6mb which i cannot change.. 我的目标是上传高达100mb的文件,但服务器upload_max_filesize设置为6mb,我无法更改..

My quetsion is, is it possible to bypass this by uploading in chunks using something like https://github.com/blueimp/jQuery-File-Upload ? 我的问题是,是否有可能通过使用https://github.com/blueimp/jQuery-File-Upload等内容上传块来绕过这个问题?

Many thanks in advance. 提前谢谢了。

Ok I've now figured it.. 好的,我现在已经想到了..

By default chunking is not enabled.. you have to enable it in the jquery options, here is the source to do that https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads 默认情况下,没有启用chunking ..您必须在jquery选项中启用它,这是执行此操作的源代码https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads

For testing purposes i've changed my php.ini settings to accept only 1mb and i'm successfully loading files that surpass that max upload. 出于测试目的,我已将我的php.ini设置更改为仅接受1mb,并且我成功加载超过最大上传的文件。

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

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