Level 25
Haven't tried this myself, but I believe this article should help you: https://www.geeksforgeeks.org/how-to-convert-data-uri-to-file-then-append-to-formdata/
Hope it works for you!
I have a view that is using javascript to take photos using the camera.
The photo image is stored into an img element using data uri.
Now I want to upload that image when clicking the submit button. How can I do that?
Thanks,
Please or to participate in this conversation.