简体   繁体   中英

Storing pictures in Ruby Volt

I am wondering what the best practice is to store pictures in a model in the Volt framework. Should I just assign it to a model's field or is there a better way?

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

Pictures will be in the database store (currently mongodb) and processed by a TaskHandler

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

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM