Created: 2011-07-07 18:11
Updated: 2018-12-02 10:42

#PLEASE READ: This repo is no longer maintained. Please see @anuragrath's fork for the latest version.

#CodeIgniter Multiple Upload Library Just an extension to the existing Upload class to take advantage of multiple uploads in one form field

##v.0.2: November 7, 2011

Changes Added a parameter to return all the uploaded file(s) info as opposed to boolean. Set to false to return boolean instead.

##v.0.1: July 7, 2011

Description This version is a quick and dirty first pass for a project I'm currently working on. I haven't worked on the error reporting piece yet, so feel free to send in that contribution if you're so inclined.

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'll default to the regular do_upload() method. In the form, set field names to array (e.g. name="userfile[]")

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more