0

I'm trying to save a canvas image to the web page server, so a php script can post it to a web api. I've been looking around and all I see is saving it in the users web browser, any help for a newbie?

user2266621
  • 99
  • 1
  • 1
  • 7

1 Answers1

0

You can extract the contents of the canvas as a data url using the toDataURL method, and then upload this to your server using an AJAX POST.

The accepted answer to this question should give you some help.

Community
  • 1
  • 1
codebox
  • 19,161
  • 7
  • 57
  • 79