Welcome Guest, Not a member yet? Register   Sign In
File upload validation with same name
#1

Hi, 

I try upload file with same name.


my code:


PHP Code:
$validation = \Config\Services::validation();

$validation->setRules([
     'files[]' => 'mime_in[files[],image/jpeg,image/pjpeg,image/png]'
]); 


And I get error this:
CRITICAL - 2019-01-23 15:57:24 --> Argument 1 passed to CodeIgniter\Validation\FileRules::mime_in() must be of the type string or null, array given, called in

So.. how to upload files with validations and same names
Reply


Messages In This Thread
File upload validation with same name - by Vykintas - 01-23-2019, 03:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB