In the first place, sorry for my poor English. I do not know, you are still interested in this topic. It doesn’t matter if it is a hint to the next visitors
Do not follow the instructions for integrating with codeigniter, it makes it difficult to understand this from incomplete code, but rather get a demo source and build a solution from this point. I did it in 1 hour :)
You need to make the Codeigniter UploadHandler.php library as per the document . Inside the library, the __construct () function changes the value of script_url to the absolute path to the controller that you create.
Then create a controller and load the library inside the index function.
Change the main.js file, replace the contents of the URL: "server / php" in $('#fileupload').fileupload() with the name of your controller.
Now you can create another controller and load the view with the contents of index.php from the original demo.
If you do everything that I indicated, you should be able to use the first controller to create ajax calls from the second controller.
source share