Search code examples
formscanvasfile-upload

Save a <canvas> as a file in a form


Using Canvas method toDataURL, I would like to be able to save the image on the server side (using Rails).

With toDataURL string, how to use it in a form that can be seen as a file attachment in a HTML form ?


Solution

  • Solution using jQuery, Paperclip, datafy.rb http://gist.github.com/397615