Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Latest jQuery File Upload easy integration with codeigniter

samcrawford edited this page Apr 22, 2014 · 2 revisions

** Updated for version 9.5.x (April 2014) **

Its very easy. No need to change anything in Codeigniter or modify the jQuery-File-Upload library (meaning that upgrades will be very simple). Steps:

  1. Place UploadHandler.php into ~/application/libraries/. No modifications required.
  2. Create fileupload.php in ~/application/controllers/ with the content below.
  3. Create ~/files and ~/thumbnails with appropriate permissions for the webserver to write to the directories.
  4. Configure your client side file upload script to point to '/fileupload' (or whatever your path is to this Codeigniter controller).

Contents of ~/application/controllers/fileupload.php :

load->library("UploadHandler");
    }
}

Note that '~' above denotes the Codeigniter root directory.

Clone this wiki locally