Hi,
I am currently trying to use the dhtmlxForm which contains items of file:
The code is like:
var uploadData = [
{type:"select",label:"File Format",options:[
{text:"Excel XML",value:"ExcelXML"},
{text:"TXT",value:"TXT"}
]},
{type:"file",name:"file",label:"",inputWidth:300},
{type:"button",name:"upload", value:"Upload", command: "save",offsetTop:10}
];
var uploadForm = layoutWinUpload.cells("a").attachForm(uploadData);
insertFFForm.attachEvent("onButtonClick",function(name,command)
{
if(name == "upload")
{
this.send("proc.php","post");
uploadWindow.close();
}
});
So My question is how to use the ‘upload’ button Click Event to load the uploaded file to the server side or client side. And where it will be located after upload?
How to write the code in the “if(name == ‘upload’){}” block? And how to write in the proc.php file?
Does anyone could help me out? Thank you very much for your help!
Appreciate.