gpt4 book ai didi

ruby - 在 Ruby Volt 中存储图片

转载 作者:数据小太阳 更新时间:2023-10-29 08:08:04 25 4
gpt4 key购买 nike

我想知道在 Volt 框架中将图片存储在模型中的最佳做法是什么。我应该将它分配给模型的字段还是有更好的方法?

最佳答案

我会使用类似 https://github.com/andrew-carroll/volt-upload 的组件

图片将存储在数据库中(目前是 mongodb)并由 TaskHandler 处理

关于ruby - 在 Ruby Volt 中存储图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31612842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com