Nov 08, 2012, 4:03 PM
Hi Daniil thanks that did the work.
@tk.Mageztik if you still need the solution for ext 2.x, basically take the same code as above and change the following:
@tk.Mageztik if you still need the solution for ext 2.x, basically take the same code as above and change the following:
<ext:FileUploadField
ID="FileUploadField1"
runat="server"
ButtonText="Add Files"
Icon="Add"
ButtonOnly="true"
AllowBlank="false"
>
<Listeners>
<render Handler="SetMultipleUpload( this, #{UpdateLabel}) ;" />
<Change Handler="if(!UpdateUploadInfo(this.button.fileInputEl.dom, #{UpdateLabel})) {this.reset();
SetMultipleUpload( this, #{UpdateLabel})}"/>
</Listeners>
</ext:FileUploadField>
And var SetMultipleUpload = function (fileupload, label) {
fileupload.button.fileInputEl.set({ multiple: 'multiple' });
if (Ext.isIE) {
label.setText('IE does not support multiple file upload, to use this feature use Firefox or Chrome');
}
}