Load form containing file input in div


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"/>

Js has below code :

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


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.


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