Hi,
Im using a dynamic form field of type upload.
isc.DynamicForm.create({
ID: "showDomain",
align: "left",
encoding: "MULTIPART_ENCODING",
fields : [
{name: "browseBtn", type: "upload", colSpan: 2,
width: 250,
canSubmit:true,
showTitle: false, endRow: true,
showIf: "showDomain.getValue('zone_2') == 'Primary Domain'"}
]
})
Adding this to the datasource as below:
dataSourceDomainList.addData({fileUpload:showDomain.getValue('browseBtn')},null);
when I get the parameter in the server side using servlet as mentioned below:
public JSONArray addData(HttpServletRequest request) throws Exception
{
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart)
{
...
}
}
Here, isMultiPartConent is returning FALSE and hence Im unable to read the uploaded file.
Can anyone help me?
Note: Im using LGPL
Thanks,
Rameshbabu Arjuna Rajan
Im using a dynamic form field of type upload.
isc.DynamicForm.create({
ID: "showDomain",
align: "left",
encoding: "MULTIPART_ENCODING",
fields : [
{name: "browseBtn", type: "upload", colSpan: 2,
width: 250,
canSubmit:true,
showTitle: false, endRow: true,
showIf: "showDomain.getValue('zone_2') == 'Primary Domain'"}
]
})
Adding this to the datasource as below:
dataSourceDomainList.addData({fileUpload:showDomain.getValue('browseBtn')},null);
when I get the parameter in the server side using servlet as mentioned below:
public JSONArray addData(HttpServletRequest request) throws Exception
{
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if(isMultipart)
{
...
}
}
Here, isMultiPartConent is returning FALSE and hence Im unable to read the uploaded file.
Can anyone help me?
Note: Im using LGPL
Thanks,
Rameshbabu Arjuna Rajan