I have the following input:
  <input type="file" asp-for="ScreenShotImage" id="offer-client-image"/>   
The application is making screenshot-image from the div calculator, and I want to set that image to id="offer-client-image" input. When the user submit the form, the image will be uploaded as well.
I tried like this, but it doesn't work:
 document.getElementById("offer-client-image").file = document.getElementById('canvas').toDataURL()
Any help is appreciated!
 
    