In order to post form data with your upload using XFile, you must pick up the values from the HTML form using client-side script, and then pass them to the XFRequest object's AddFormElement method, like this:
XFile.AddFormElement("TextBox", document.getElementById('TextBox').value);
XFile.AddFormElement("DropDown",document.getElementById('DropDown').value );
But what about form elements that contain subcollections, such as multi-select lists or checkboxes? |