1. #1
    Ext User
    Join Date
    Jan 2008
    Location
    ZhuHai GD CN
    Posts
    20
    Vote Rating
    0
    endstar520 is on a distinguished road

      0  

    Default how use browserbutton get multi-file?

    how use browserbutton get multi-file?


    Hi all,

    i use Ext.ux.form.BrowseButton to select multi-file upload,but when i submit the form,only can catch 1 File ,how can i catch all i select file?
    ================
    Code:
         handler:function(){
    	             var inputFileEl = butUpload.detachInputFile();
    		    alert(inputFileEl.dom.name+'---'+inputFileEl.dom.value);
              //the dom.name is same when i select multi-file ,but the dom.id is different
                                   //  in Firebug, i only see the last select file content in PostView
    
    		   document.form1.submit();
    						}

    somebody can help me?!




    If you understand chinese,can look the flow descript!
    =======================================================
    是这

  2. #2
    Ext User
    Join Date
    Jan 2008
    Location
    ZhuHai GD CN
    Posts
    20
    Vote Rating
    0
    endstar520 is on a distinguished road

      0  

    Default


    up

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    This is a browser limitation. A single file input can only upload one file.

    There are several extensions in the User Extensions and Plugins section that create a UI for this (e.g. this one).

  4. #4
    Ext User
    Join Date
    Jan 2008
    Location
    ZhuHai GD CN
    Posts
    20
    Vote Rating
    0
    endstar520 is on a distinguished road

      0  

    Thumbs up


    think you for your help

Thread Participants: 1