Open txssseal opened 8 years ago
A couple of questions:
Some crop libs uses base64 to represent the cropped image: http://foliotek.github.io/Croppie/
Where:
class Test < ApplicationRecord
attachment :image
end
In your controller you can do this to attach Base64:
@test.image = StringIO.new(Base64.decode64(params[:image]))
I know in paperclip it is built in as of 4.0 that Base64 encoded images will upload without any extra work. Does refile have any built in support for uploading Base64 images?