Saving images in Ruby Volt

I am wondering what is the best way to store photos in a model in a Volt structure. Should I just assign it to the model field or is there a better way?

+3


source to share


2 answers


I would use a component like https://github.com/andrew-carroll/volt-upload



The images will be in the database store (currently mongodb) and handled by TaskHandler

+1


source


We don't have a good photo upload component right now, but as soon as I get the time, I'll do it. You can just create a and push HttpController. The tempfile for the image will be in params._image_field_name. Let me know if you need more help.



Thank!

0


source







All Articles