[英]KCFinder upload file size limit
In my php.ini i verified that upload limit is 20M 在我的php.ini中,我确认上传限制为20M
However, when i try to upload files it accepts everything under approximately 120kb and refuses everything above that. 但是,当我尝试上传文件时,它会接受大约120kb以下的所有内容,并拒绝高于该值的所有内容。
I didn't make any specific changes on kcfinder. 我没有对kcfinder进行任何特定的更改。
If it is important, i use Firefox and Chrome. 如果重要的话,我使用Firefox和Chrome。
Any idea what can be problem? 知道会是什么问题吗?
file uploads are affected with more variables than upload_max_filesize
alone. 文件上传受变量影响的程度比单独的
upload_max_filesize
更大。 File upload is just POST
request, so you need to check post_max_size
too and adjust it if needed. 文件上传只是
POST
请求,因此您也需要检查post_max_size
并根据需要进行调整。 In general you want post_max_size
to be at least the size upload_max_filesize
+ some overhead for other POST data. 通常,您希望
post_max_size
至少为upload_max_filesize
大小+其他POST数据的开销。
Ok, here is the solution, but first, what did i try and got while i was exploring the issue: 好的,这是解决方案,但是首先,我在探索问题时尝试了什么:
So i added two config lines there: 所以我在那儿添加了两条配置行:
FcgidMaxRequestLen 52428800 FcgidMaxRequestLen 52428800
MaxRequestLen 52428800 MaxRequestLen 52428800
/etc/init.d/apache2 restart AND IT WORKED :D /etc/init.d/apache2重新启动并完成:D
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.