You can’t .serialize an <Input type=file>.
You need to use a FormData.
replace lines 45-54 with
- $.ajax({
- type: "POST",
- url: "send-proof.php",
- data: new FormData(form),
- processData: false,
- contentType: false,
- success: function(data)
- {
- $('#result').html(data);
- }
- });