   uploadFile: (file) ->
     xhr = new XMLHttpRequest()
 
-    xhr.open "POST", @options.url, true
+    xhr.open @options.verb, @options.url, true
 
     handleError = =>
       @errorProcessing file, xhr.responseText || "Server responded with #{xhr.status} code."


    fields = createElement fieldsString
    if @element.tagName isnt "FORM"
      form = createElement("""<form action="#{@options.url}" enctype="multipart/form-data" method="post"></form>""")
      form.appendChild fields
    else
      # Make sure that the enctype and method attributes are set properly
      @element.setAttribute "enctype", "multipart/form-data"
      @element.setAttribute "method", "post"
    form ? fields





  defaultOptions:
    verb: "POST"
    url: null
    parallelUploads: 2
    maxFilesize: 256 # in MB
