Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs 4.1 - Multi select and upload file

Tags:

extjs

extjs4.1

I see this tutorial in http://www.rahulsingla.com/blog/2012/03/extjs-3-enabling-multiple-file-uploads-using-textfield#comment-2097

i try it like below but i can't select multi file to upload

items: [{
        xtype: 'textfield',
        name: 'name[]',
        fieldLabel: 'Name',
        inputType: 'file',
        fieldLabel: 'Multiple file selection',
        autoCreate: { tag: 'input', type: 'text', size: '20', autocomplete: 'off', multiple: 'multiple' }
    }]

Here is my code http://jsfiddle.net/baKxc/
What should i do to make that work thank.


Edit: If i do in this post. It looks great, but i can't get file in php server. How can i do to work thank

like image 269
DeLe Avatar asked Aug 02 '13 07:08

DeLe


1 Answers

{
    xtype:'fileField',
    listeners:{
        afterrender:function(cmp){
            cmp.fileInputEl.set({
                multiple:'multiple'
            });
        }
    }
}
like image 74
Neil McGuigan Avatar answered Sep 22 '22 20:09

Neil McGuigan