       @hiddenFileInput = null
     delete @element.dropzone
     Dropzone.instances.splice Dropzone.instances.indexOf(this), 1
+
+  addExistingFiles: (files) ->
+    for file in files
+      file.status = Dropzone.EXISTING
+      file.accepted = true
+      @_addFile(file)
+    null
+
+  getExistingFiles: () -> @getFilesWithStatus(Dropzone.EXISTING)
 
   updateTotalUploadProgress: ->
     totalBytesSent = 0

    for item in items
      if item.webkitGetAsEntry? and entry = item.webkitGetAsEntry()
        if entry.isFile
          @addFile item.getAsFile()
        else if entry.isDirectory
          # Append all files from that directory to files
          @_addFilesFromDirectory entry, entry.name
      else if item.getAsFile?
        if !item.kind? or item.kind == "file"
          @addFile item.getAsFile()

  # Goes through the directory, and adds each file it finds recursively
  _addFilesFromDirectory: (directory, path) ->

          entry.file (file) =>
            return if @options.ignoreHiddenFiles and file.name.substring(0, 1) is '.'
            file.fullPath = "#{path}/#{file.name}"
            @_addFile file
        else if entry.isDirectory
          @_addFilesFromDirectory entry, "#{path}/#{entry.name}"
      return
