I have a Lumen app handling file uploads and it is working perfectly fine for files below 2MB. But when I try to upload to file > 2MB, I am getting the following validation failed and the file is not getting uploaded,
$this->validate($request, [
'file' => 'required'
]);
Response is
{"file":["The file field is required."]}
I have verified php.ini
file and it has been set to accept files upto 20MB
upload_max_filesize = 20M
post_max_size = 20M
I have also restarted apache and verified if the above php.ini
is being loaded via phpinfo()
你确定 /etc/apache2/ 目录中有 php.ini 吗???
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.