codeigniter 3 Multiple File Drag and Drop Upload

Today, We want to share with you codeigniter 3 Multiple File Drag and Drop Upload using DropzoneJS.In this post we will show you File Upload using dropzone.js and Codeigniter, hear for multiple image upload in codeigniter with database demo we will give you demo and example for implement.In this post, we will learn about codeigniter multiple image upload with preview with an example.

codeigniter 3 Multiple File Drag and Drop Upload using DropzoneJS

There are the Following The simple About codeigniter 3 Multiple File Drag and Drop Upload using DropzoneJS Full Information With Example and source code.

Read Also:  Multiple WHERE conditions in Laravel Example

As I will cover this Post with live Working example to develop drag and drop in codeigniter, so the codeigniter 3 multiple file upload for this example is following below.

Step 1: Download Latest version of the CodeIgniter,

You need to first of all, simple Download CodeIgniter version and setup Localsystem.and then here create a new folder application root here display index.php file.

Step 2: Download dropzone.js Setup

here all the Codeigniter dropzone all the folders and files download here

Step 3: codeigniter Define a Controller

simple create a main logic of the codeigniter controllers for dropzone.

Read Also:  Vue.js DatePicker Source Code Example with Demo


<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dropzone extends CI_Controller {
    public function __construct() {
    public function index() {
    public function upload() {
        if (!empty($_FILES)) {
        $tmpfiles = $_FILES['file']['tmp_name'];
        $mflname = $_FILES['file']['name'];
        $targetPath = getcwd() . '/uploads/';
        $destination = $targetPath . $mflname ;
        move_uploaded_file($tmpfiles, $destination);
/* End of include file your main dropzone.js */
/* Your Location Put your Files: ./application/controllers/dropzone.php */

Step 4: codeigniter View File

Make a simple view file all the html elemets


<title>File Upload using dropzone.js and Codeigniter</title>
<link href="<?php echo base_url(); ?>resouces/css/dropzone.css" type="text/css" rel="stylesheet" />
<script src="<?php echo base_url(); ?>resouces/dropzone.min.js"></script>
<h1>PHP Ajax File Upload using dropzone.js and Codeigniter -</h1>
<form action="<?php echo site_url('/dropzone/upload'); ?>" class="dropzone"  >
<a href="" target="_blank" alt="pakainfo" title="pakainfo">Free Download Example -</a>

Angular 6 CRUD Operations Application Tutorials

Read :

Read Also:  how to make autocomplete textbox by using AngularJS?


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about codeigniter 3 Multiple File Drag and Drop Upload using DropzoneJS.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  how to insert multiple image in database using codeigniter?
  2. Read Also:  Core PHP Creating SEO Friendly URL using htaccess
  3. Read Also:  Node.js Sending Email Nodemailer Tutorial
  4. Read Also:  PHP AJAX Live Search Box Autocomplete Using MySQL Database
  5. Read Also:  Codeigniter drag and drop files Multiple Images Upload
  6. Read Also:  Bootstrap datepicker Disable Dates Dynamically in jQuery
  7. Read Also:  Creating Dynamic XML Sitemaps Generator Using PHP MySQLi
  8. Read Also:  how to upload multiple separate images in codeigniter with database?
  9. Read Also:  how to upload multiple images in codeigniter?
  10. Read Also:  jquery ajax image upload preview codeigniter