<input type="file" name="image1" accept="image/*" required="" id="id_image1">
let bodyF = "<input type='file' class='image1' multiple accept='image/*'/>";
$('.image1').change(function () {
var input = $(this)[0];
if (input.files && input.files[0]) {
if (input.files[0].type.match('image.*')) {
var reader = new FileReader();
reader.onload = function (e) {
$imageOne = e.target.result;
$('#id_image1').on('blur', function (e) {
$( "#id_image1" ).val( $imageOne )
});
}
reader.readAsDataURL(input.files[0]);
}
}
});