javascript - how to keep adding files to files array with multiple button clicks -
basically, have input element of type file:
<form method="post" action="upload-page.php" enctype="multipart/form-data"> <input name="filestoupload[]" id="filestoupload" type="file" multiple="" /> </form> now each click on file button, files array keeps track of files selected current click, how make keeps track of files every click?
you must add more input elements page.
Comments
Post a Comment