I have some graphics made with canvas that I want to save in a specific folder of the user's computer as a .png image.
I'm doing this on the client side:
$(".new_canvas").each( function(index) {
var dataurl = $(".new_canvas")[index].toDataURL("image/png");
$.ajax({
type: "POST",
url: "export_images",
data: dataurl,
}
});
});
On the server side I receive the base64 encoded string but how can I save this image in a specific directory?
I already saw some questions about this and tried a few things but with no success...
Thank you.