title: Krajee-bootstrap file input plugin:: How can i get the total number of the files from 'Drag & drop'?
body: <p>I'm using bootstrap - <a href="http://plugins.krajee.com/file-input/demo#ajax-uploads" rel="nofollow noreferrer">krajee file input plugin</a>. Here i want to get the total number of files are uploaded from the '<strong><em>drag &amp; drop files here</em></strong>' field.i included this plugin in a form,so when i click the submit button, it should show the error message if the the file is not uploaded.</p>
  
  <pre><code>              $("#file-1").fileinput({
                   uploadUrl: 'file/fileupload.php', 
                   allowedFileExtensions : ['jpg', 'jpeg','png'],
                   overwriteInitial: false,
                   maxFileSize: 1024,
                   maxFilesNum: 10,
               });
  
  
               $(".btn-warning").on('click', function()
               {
                if ($('#file-4').attr('disabled'))
                {
                  $('#file-4').fileinput('enable');
                } 
                else
                {
                  $('#file-4').fileinput('disable');
                }
              });  
  </code></pre>
  
  <p>Here is the image before upload  <a href="https://i.stack.imgur.com/mP1LO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mP1LO.png" alt="enter image description here"></a></p>
  
  <p>And this is after upload
  <a href="https://i.stack.imgur.com/rid3K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rid3K.png" alt="enter image description here"></a></p>
  
  <p>so i need to check whether those images are uploaded or not.</p>