Currently, I am in the process of sending a file over to a server and have structured my DOM element like this:
_uploadForm = document.createElement("form");
_uploadForm.method = "POST";
_uploadForm.action = "#";
if(_isBrowser.IE)
_uploadForm.encoding = "multipart/form-data";
else
_uploadForm.enctype = "multipart/form-data";
The issue I am facing is that my server mandates an http basic authorization header. How can I effectively integrate that into this specific DOM element?