After months of searching examples and answers, I can’t find anything that works for me. All help is welcome.
System --- Woocommerce -- Single product page.
I bought an add-on to attach one image when your're on <form class="cart">
. This is in single product page.
Basically the plugin adds a <input type ="file">
in the form and allows you to attach images in order. I'm happy with it because it works fine and a lot of backend work is taken care of.
On the other hand, I have a <canvas>
and I need yo load the <canvas>
content in the <input type ="file">
. Once done, the add-on is ready to do its job.
So my question is:
How do I put the content of the canvas as a file in the <input>
?