Can a html5 file input remember the previous selected files?

后端 未结 1 680
[愿得一人]
[愿得一人] 2021-01-23 18:01

I\'m trying to create an AJAX Multi-Upload which will get all selected files within a form/file-input and upload this through my AJAX PHP Controller. For this process I\'m using

相关标签:
1条回答
  • 2021-01-23 18:38

    As i mentioned in my comment you could just create a new input every time a user selects a file...

    Jquery example:

    $(document).on('change','input[type="file"][multiple]',function(){
       var $this = $(this);
       $this.clone().insertAfter($this);
       $this.hide();
    });
    

    You don't have to use jQuery of course, but its just the simplest way to explain what i mean.

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