 cleaned    = {}
 frMethods  = {}
 xhrSend    = XMLHttpRequest::send
+xhrOpen    = XMLHttpRequest::open
 fdAppend   = FormData::append
 formSubmit = HTMLFormElement::submit
 

  else
    xhrSend.apply @, arguments



FormData::append = (key, val, filename) ->

        xhr.onerror = ->
          reportErr 'Something went wrong submitting the upload form.', cleaned

        xhrOpen.call xhr, form.getAttribute('method') or 'GET', action
        xhrSend.call xhr, formData


