保存< canvas>作为一种形式的文件 [英] Save a <canvas> as a file in a form

查看:142
本文介绍了保存< canvas>作为一种形式的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Canvas方法toDataURL,我想能够在服务器端保存图像(使用Rails)。

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

使用toDataURL字符串,如何使用

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

推荐答案

使用jQuery,Paperclip,datafy.rb的解决方案
http://gist.github.com/397615

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

这篇关于保存< canvas>作为一种形式的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆