• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.