Hello ,
We are having issue trying to save a form with 2 FileItems. Only one file gets to the server .
Here is our client side code
DMI file...
On the server side
List<ISCFileItem> uploadedFiles = dsRequest.getUploadedFiles();
always returns ONLY ONE file ( instead of two).
Please let us know if you need more info.
Thanks,
Stonebranch
p.s. We are using SmartGWTEE2.1
We are having issue trying to save a form with 2 FileItems. Only one file gets to the server .
Here is our client side code
Code:
final TextItem idItem = new TextItem("id", "id"); idItem.setVisible(false); final FileItem logoFileItem = new FileItem("logo", "Logo"); final FileItem defaultLogoFileItem = new FileItem("defaultLogo", "Default Logo"); dynamicForm.setItems(idItem, logoFileItem, defaultLogoFileItem);
Code:
<fields> <field name="id" type="string" hidden="true" primaryKey="true" /> <field name="logo" type="imageFile" title="Logo File" required="false" /> <field name="defaultLogo" type="imageFile" title="Default Logo File" required="false" /> </fields>
On the server side
List<ISCFileItem> uploadedFiles = dsRequest.getUploadedFiles();
always returns ONLY ONE file ( instead of two).
Please let us know if you need more info.
Thanks,
Stonebranch
p.s. We are using SmartGWTEE2.1
Comment