Upload in codeigniter with dropzone and automatic refresh

Dificuldade    

This tutorial will teach how to create a multiple file upload on your system using the plugin Dropzone.js and CodeIgniter.

1) First you have to add in your view a short form with a class  called ‘dropzone’ and the id ‘mydropzone’, referencing the action to the method in your controller that will receive data from files.

 

2) In the same view we add the code below, this will apply the dropzone on the form update the page after uploading finish.

3) Now you need to implement the method do_upload in your upload controller.