I have a button for upload image
in html
:
<input id="album-image-input" style="display:none;" type="file" name="albumimages" multiple onchange="previewImages(this.files)" maxlength="10" accept="image/png,image/jpg"/>
<button onclick="HandleBrowseClick('album-image-input');" >UPLOAD IMAGE</button>
with js
:
function HandleBrowseClick(input_image){
var fileinput = document.getElementById(input_image);
fileinput.click();
}
At certain pages when I click on the UPLOAD IMAGE
, it will call:
Navigated to http://localhost:8888/mysite/?albumimages=
but not at some pages.
Why is that? And how can I prevent that from happen?