     # @options.url = @element.getAttribute "action" unless @options.url?
     @options.url = @element.getAttribute "action" unless @options.url?
 
-    throw new Error "No URL provided." unless @options.url
-
     throw new Error "You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. " +
       "'acceptedMimeTypes' is deprecated." if @options.acceptedFiles and @options.acceptedMimeTypes
 


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

    xhr = new XMLHttpRequest()


    formData.append @_getParamName(i), files[i], files[i].name for i in [0..files.length-1]

    xhr.send formData

    new Promise((resolve) -> resolve(files))

  # Called internally when processing is finished.
  # Individual callbacks have to be called in the appropriate sections.
