     """
     @_uploaded = {}
 
+
+  showGenericError: (message)->
+
+    message or= "
+      <p>
+        Sorry, you can't upload more than 20 files, and uploading
+        folders is only supported for Chrome 21 and above.
+      </p>
+      <p>
+        You can also <a href='http://www.wikihow.com/Make-a-Zip-File' target='_blank'>zip</a>
+        your files for faster uploads. Please correct the error and try again.
+      </p>
+    "
+
+    modal = new KDModalView
+      title        : "Upload File Error"
+      width        : 500
+      overlay      : yes
+      cssClass     : "new-kdmodal"
+      content      : "<div class='modalformline'>#{message}</div>"
+      buttons      :
+        Ok         :
+          style    : "modal-clean-green"
+          callback : -> modal.destroy()
+
+
   drop: (event)->
 
     super

    dirReader.readEntries (entries)=>

      if entries.length > 20
        KD.showError "It's not allowed to upload more than 20 files at once."
        return

      for entry in entries


      for file in files
        if file.type is ""
          @showGenericError() # "Folder upload is only supported for Chrome 21+"
          return

      # fallback to upload files for folder upload browsers
