This error occurred when I uploaded an image file with the rules I wrote in the model. The image is still uploaded into a path that I have specified even though this error appears. AI said this error appears because codeIgniter doesn’t find the temporary file from your image upload. This is a typical error when the file has disappeared before being handled by the server.
protected $validationRules = [
'image' => 'uploaded[image]|max_size[image,2048]|is_image[image]|mime_in[image,image/png,image/jpeg,image/jpg]',
];
in my controller, the way I check the validation for the uploaded file is like in the attached image. I hope to use validation from the model instead of writing it manually in the controller but written directly in the model.