 
     @emit "processingmultiple", files if @options.uploadMultiple
 
-    @_uploadFiles files
+    if @options.uploadFiles?
+      @options.uploadFiles(files, uploadData)
+    else
+      @_uploadFiles files
 
   _getFilesWithXhr: (xhr) -> files = (file for file in @files when file.xhr == xhr)
 

  processFile: (file) -> @processFiles [ file ]

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

    option

  _uploadFiles: (files) ->
    xhr = new XMLHttpRequest()

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