Plupload - Restrict to only one file

后端 未结 13 1017
攒了一身酷
攒了一身酷 2021-02-02 10:15

I don\'t see an option in the plupload API docs on restricting the number of files uploaded, to any number, even 1.

Doc fail? or Feature fail? If it doesn\'t exist I\'ll

13条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 11:18

    now you can disable multi-selection by setting multi_selection option to false

    just like this

    var uploader = new plupload.Uploader({
        runtimes : 'html5,flash',
        browse_button : 'button_id',
        multi_selection:false,  //disable multi-selection
    ...
    

    official doc is here : http://www.plupload.com/documentation.php

提交回复
热议问题