I have this form:
<input type="file" name="CAR_Logo">
<button data-action="save" data-name="Africa">Save</>
How I can update my code to be able to upload the file ?
This is what I have tried:
$('[data-action="save"]').click(function(e) {
e.preventDefault();
CAR_Name = $(this).data('name');
CAR_Logo = $(this).val('CAR_Logo');
});