您好我在 cakePHP 中实现了文件上传,文件上传正常,但我的代码不支持上传大小超过 1 Mb 的文件,我尝试了以下方式但没有用。
我在 .htaccess 文件中添加了以下行
php_value post_max_size 10M
php_value upload_max_filesize 10M
并在 TestController 的 upload() 中添加以下行
$post_max_size = ini_get('post_max_size');
$upload_max_filesize = ini_get('upload_max_filesize');
LogUtil::$logger->debug('Post Maximum Size : '. $post_max_size);
LogUtil::$logger->debug('Upload Maximum Size : '. $upload_max_filesize);
记录器未显示上传最大文件大小和 postmaxsize 的修改值
请指导我,提前谢谢。