I have a problem with the file of js Which is send all the data form with an src image except the input file data
$(document).ready(function(){
    //PURE PATH TO IMAGE GENERATING PHP FILE
    var base = $(".preview img").attr("src");
     
    //GATHER IMAGE FOR FIRST TIME
    $(".preview img").attr("src",base+'?'+$(".form-horizontal").serialize());
         
    //KEYUP EVENT AND NEW IMAGE GATHER
    $(".form-horizontal input,textarea").stop().keyup(function(){
        $(".preview img").attr("src",base+'?'+$(".form-horizontal").serialize());  
    });
 
    $("#getResults").click(function(){
        $("#resultsUrl").val($(".preview img").attr("src"));
        $("#link").show("slow");
    });
     
});<form method="post" action="member_save.php">
<input type="text"  name="firstname"  required>
 
<input type="text"  name="lastname"  required>
<input type="file"    name="image" accept="image/*" required>
<button name="submit" type="submit">save</button>
</form>
<div id="preview" class="preview">   
<img src="mpdf-master/recto.php" style=" margin-right:-72%; width:70%; />'].""
</div> 
    