i am using smartGWT for my application, and have a functionality to upload from from a popup window. this functionality is working fine in all browsers except IE(all versions).
and here is some piece of code to upload a image on server from client side,
=========== JAVA CODE ==============
final DynamicForm uploadForm = new DynamicForm();
uploadForm.setUseAllDataSourceFields(true);
uploadForm.setDataSource(DataSource.get("uploadSPF ile"));
uploadFileName=uploadForm.getValue("file").toStrin g();
=========== .ds.xml file ==============
<DataSource ID="uploadSPFile">
<fields>
<field name="file" type="binary" />
<field name="type" type="text" editorType="hidden" />
<field name="user_name" type="text" editorType="hidden" />
<field name="fileName" type="text" editorType="hidden" />
<field name="spId" type="text" editorType="hidden" />
<field name="isSizeOk" type="text" editorType="hidden" />
</fields>
<serverObject className="com.smartgwt.obs.server.servlet.SPUploa d" />
<operationBindings>
<binding operationType="update" serverMethod="saveFile" />
<binding operationType="add" serverMethod="saveFile" />
</operationBindings>
</DataSource>
and here is some piece of code to upload a image on server from client side,
=========== JAVA CODE ==============
final DynamicForm uploadForm = new DynamicForm();
uploadForm.setUseAllDataSourceFields(true);
uploadForm.setDataSource(DataSource.get("uploadSPF ile"));
uploadFileName=uploadForm.getValue("file").toStrin g();
=========== .ds.xml file ==============
<DataSource ID="uploadSPFile">
<fields>
<field name="file" type="binary" />
<field name="type" type="text" editorType="hidden" />
<field name="user_name" type="text" editorType="hidden" />
<field name="fileName" type="text" editorType="hidden" />
<field name="spId" type="text" editorType="hidden" />
<field name="isSizeOk" type="text" editorType="hidden" />
</fields>
<serverObject className="com.smartgwt.obs.server.servlet.SPUploa d" />
<operationBindings>
<binding operationType="update" serverMethod="saveFile" />
<binding operationType="add" serverMethod="saveFile" />
</operationBindings>
</DataSource>
Comment