         document.body.appendChild @hiddenFileInput
         @hiddenFileInput.addEventListener "change", =>
           files = @hiddenFileInput.files
-          @addFile file for file in files if files.length
+          @_addFile file for file in files if files.length
           @emit "addedfiles", files
           setupHiddenFileInput()
       setupHiddenFileInput()

      canvas.height = resizeInfo.trgHeight

      # This is a bugfix for iOS' scaling bug.
      drawImageIOSFix ctx, img, resizeInfo.srcX ? 0, resizeInfo.srcY ? 0, resizeInfo.srcWidth, \
        resizeInfo.srcHeight, resizeInfo.trgX ? 0, resizeInfo.trgY ? 0, resizeInfo.trgWidth, \
        resizeInfo.trgHeight

      thumbnail = canvas.toDataURL "image/png"


      @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
