I have the input file upload html code as below. I want to set the input file value and then show the image in the input box. But failed. Do you know why?? Any solutions??
<div class="mb10">
<input id="image2" name="image2" value="<?php echo $imageFile2;?>" class="file" type="file" accept="image/*">
<div id="uploadImgError2">
</div>
</div>
$("#image2").fileinput({
'showPreview' : true,
'allowedFileExtensions' : ['jpg', 'png','gif', 'bmp'],
'showUpload' : false,
'maxFileCount':1,
'maxFileSize': 10000000
});