pleas I have my following code:
let data = {
input: {
amount: 100,
identity_card: document.forms["form"]["file"].files[0],
}
}
But it does not work. I would like my identity_card attribute to be a file. I tried every possible way, but without success. I even tried with the FormData but without success