What server are you using, apache or nginx, also you can check phpinfo() are the changes aplied, maybe you are changing upload_max_filesize, max_execution_time, post_max_size in wrong php.ini
You can try: php -i | grep 'php.ini'
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, i am trying to upload multiple files through API, everything works fine when i upload files below 10mb API returns 404 when upload files larger than 10mb. i have updated upload_max_filesize, max_execution_time, post_max_size and still same response received.
public function image_upload(Request $request){
$files = $request->file('img');
$i=0;
if($files){
foreach($files as $file){
$i++;
$path = $file->storeAs('images', $i.".".$file->extension());
}
if($path){
return response()->json(['status' => 0, 'response' => 'file added..']);
}else{
return response()->json(['status' => 1, 'response' => 'failed to upload..']);
}
}else{
return response()->json(['status' => 1, 'response' => 'no file received..']);
}
}
Please or to participate in this conversation.