Hi,
I am using smartgwt power edition 2014.
File upload is working on some systems (browser) and giving error(unable to upload) from few systems. Both systems have same windows OS. Is their any security setting not allowing it?
In log I can see:
values:{
fileContent:null
},
I am using fileBrowser with FormItem inside DynamicForm
Sample Code :
1)
<DynamicForm ID="uploadForm" height="90%" width="100%"
autoDraw="false" cellPadding="5">
<fields>
<FormItem name="fileBrowser" title="File Content"
constructor="FileItem" width="100%">
<textAlign>center</textAlign>
<wrapTitle>false</wrapTitle>
<prompt>SelectFile</prompt>
</FormItem>
</fields>
</DynamicForm>
2) DataSource:
<DataSource ID="fileUpload" serverConstructor="com.xyz.FileUploadDataSource">
<fields>
<field name="id" type="sequence" primaryKey="true" hidden="true"/>
<field name="filename" type="text" length="300" required="false" hidden="true"/>
<field name="fileContent" type="binary" />
</fields>
</DataSource>
Please let me know how to fix this issue?
Thanks,
Shrikant N.
I am using smartgwt power edition 2014.
File upload is working on some systems (browser) and giving error(unable to upload) from few systems. Both systems have same windows OS. Is their any security setting not allowing it?
In log I can see:
values:{
fileContent:null
},
I am using fileBrowser with FormItem inside DynamicForm
Sample Code :
1)
<DynamicForm ID="uploadForm" height="90%" width="100%"
autoDraw="false" cellPadding="5">
<fields>
<FormItem name="fileBrowser" title="File Content"
constructor="FileItem" width="100%">
<textAlign>center</textAlign>
<wrapTitle>false</wrapTitle>
<prompt>SelectFile</prompt>
</FormItem>
</fields>
</DynamicForm>
2) DataSource:
<DataSource ID="fileUpload" serverConstructor="com.xyz.FileUploadDataSource">
<fields>
<field name="id" type="sequence" primaryKey="true" hidden="true"/>
<field name="filename" type="text" length="300" required="false" hidden="true"/>
<field name="fileContent" type="binary" />
</fields>
</DataSource>
Please let me know how to fix this issue?
Thanks,
Shrikant N.
Comment