Upload Multiple files Using CodeIgniter?

Usually we do require some type of multiple images upload or multiple file upload in different projects so we have uploaded this multiple files upload via codeignitor

multiple-file uploads codeignitor

This is just an add on my previous blog of Codeigniter where we have made Codeigniter file upload using ajax. suppose you want to upload multiple files instead of one upload then follow the below-mentioned steps.

Installation Copy MY_Upload.php to your application/libraries directory. If you are using a prefix other than MY_ for your classes and/or alternative file paths, adjust accordingly.

Usage Load the Upload class as usual, in your controller call the function do_multi_upload(). If you are uploading a single file, it will default to the regular do_upload() method. In the form, set field names to array (e.g. name=”userfile[]”)


visit Github Repositry https://github.com/Appfinz/multiplefile-upload-codeignitor.git

Check This Also

Difference between AngularJS and Angular 2 Make a Mobile app in just 10 minutes With Ionic Framework Angular 9: What to Expect in New Version of Angular Alert (Toaster) Notifications in Angular 8

Tags: website development company in delhi|| website designing company in delhi || b2b portal development company || magento development company in delhi ||  website redesigning company in delhi

About Post Author

Leave a Reply

Your email address will not be published.