Plupload how to continue to upload after UploadComplete

后端 未结 2 1633
没有蜡笔的小新
没有蜡笔的小新 2021-01-02 22:40

I\'m using plupload 1.5.7, jQuery Queue Widget, after the upload complete the Add files and Start Upload buttons disappear, replaced by a l

2条回答
  •  臣服心动
    2021-01-02 23:26

    The Buttons you're looking for are still available but not displayed. So instead of reinitializing the Uploader, you can just change the display CSS option via JS, like that:

    uploader.bind('UploadComplete', function() {
      $(".plupload_buttons").css("display", "inline");
      $(".plupload_upload_status").css("display", "inline");
    })
    

    Or if you are attaching your Events in the init function:

    UploadComplete: function() {
      $(".plupload_buttons").css("display", "inline");
      $(".plupload_upload_status").css("display", "inline");
    }
    

    Note that im using jQuery in this example, but it would also work with plain JS.

提交回复
热议问题