   processFile: (file) -> @processFiles [ file ]
 
   # Loads the file, then calls finishedLoading()
-  processFiles: (files) ->
+  processFiles: (files, uploadData) ->
     for file in files
       file.processing = yes # Backwards compatibility
       file.status = Dropzone.UPLOADING

    option

  _uploadFiles: (files) ->
    if @options.uploadFiles?
      return @options.uploadFiles(files)

    xhr = new XMLHttpRequest()

    # Put the xhr object in the file objects to be able to reference it later.


    @emit "processingmultiple", files if @options.uploadMultiple

    if @options.uploadFiles?
      @options.uploadFiles(files, uploadData)
    else
      @_uploadFiles files

  _getFilesWithXhr: (xhr) -> files = (file for file in @files when file.xhr == xhr)

