Error while uploading multiple image files - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Error while uploading multiple image files (/showthread.php?tid=74779) |
Error while uploading multiple image files - Mobostar - 11-04-2019 Hello, I've been trying to upload multiple images using CI's (version 3.1.11) File Uploading Class with partial success so far. I say "partial", because as long as I do not select more than 4 files everything goes fine. Images get uploaded without any errors. If I select 5 or more images I get "The action you have requested is not allowed." error. These are the files: File name Size in KB
I tried several different combination of 4 files, they all worked. When I select more than 4 then it fails with the error message I mentioned above. This is the HTML form code: Code: echo form_open_multipart('', ['id' => 'frm_photos', 'class'=> 'form-horizontal']); The error message looks as though it may be related to CSRF protection which is enabled in the CI's config.php. CI version is 3.1.11 Anybody has an idea why this may be happening ? Thanks, RE: Error while uploading multiple image files - InsiteFX - 11-05-2019 It may be your php.ini settings. Code: php.ini File: Try one of the above and see if it fixes your problem. RE: Error while uploading multiple image files - Mobostar - 11-05-2019 (11-05-2019, 09:11 AM)InsiteFX Wrote: It may be your php.ini settings. It was Code: post_max_size = 64M Mine was set to 8M which was too small. Thanks |