1

Once I upload a file through input type, it then gets disabled, can't upload another file until the page is refreshed. I don't want to upload multiple files at once, but one after the other. Then click on submit.

My code:

<i class="fa fa-video-camera"></i>
<span>
    <input type="file" id="video-dancing" name="postVideo" accept="video/*">
</span>
Morteza QorbanAlizade
  • 1,520
  • 2
  • 19
  • 35
Abizz
  • 216
  • 2
  • 16

3 Answers3

0

https://daveismyname.com/upload-multiple-files-with-a-single-input-with-html-5-and-php-bp

hope this would help your problem .

Mahi
  • 1,707
  • 11
  • 22
0

Once the first upload is complete, simply add code to refresh the page.

termcap
  • 3
  • 2
  • 1
    is there anyother option where i dont have to refresh the page?? – Abizz Oct 17 '16 at 05:33
  • Then use multiple as people have suggested, I think using multiple you can select one file at a time and then finally hit submit. – termcap Oct 17 '16 at 05:35
-1

use attribute multiple to select multiple files.

<input type="file" id="video-dancing" name="postVideo" accept="video/*" multiple >
Ashraful Islam
  • 895
  • 7
  • 17