How to pick(choose) multiple files at the same time in phonegap

前端 未结 1 1072
醉梦人生
醉梦人生 2021-01-14 04:11

I googled and search here i didn\'t find any opted solution relates to multiple file picker or chooser in phonegap. Currently i am able pick single file at a time in phonega

1条回答
  •  忘掉有多难
    2021-01-14 04:26

    Please try this:

    Download this demo..

    http://ramkulkarni.com/temp/2012-04-09/FileChooser_PG_3_3.zip

    Replce this on index.html

        file_Browser_params = new Object()
        file_Browser_params.on_file_select = function (fileEntry)
        {
            //$("#fileMsgSpan").html("You selected " + fileEntry.fullPath);
            $("#fileMsgSpan").html("You selected " + fileEntry);
            return false;
        }
    

    Replace all filebrowser.html with this code

        
    
        

    File Chooser

    enter image description here

    0 讨论(0)
提交回复
热议问题