Load form containing file input in div

Hi,

I was trying to load my XML UI into html div. I tried below way but UI does not come up.
Can you please suggest what is that I am missing?
My jsp has below code

<form id="myHTMLForm" method="POST" enctype="multipart/form-data" ">
		<div id="mydiv"/>
</form>

Js has below code :

layout_addfile.attachObject(document.getElementById("myHTMLForm"));
var myFileForm = new dhtmlXForm("myDHXForm");
	myFileForm .loadXML(context + "/action/actionfile?op=loadAddfileForm&e=" );
	layout_addfile.attachObject(myFileForm );

Hi

what are you trying to achieve?

I wanted to upload a file without refreshing page. I am using XML file input to upload. Can you please provide a example of this.

I tried using dhtmlxvalut and I see below exception when I hit upload button
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn’t contain a multipart/form-data or multipart/mixed stream, content type header is null

Can you please provide working example.

Hi

here is a doc docs.dhtmlx.com/doku.php?id=dhtm … how_to_use

also we have more improved uploader
docs.dhtmlx.com/doku.php?id=dhtm … orm_upload