代码拉取完成,页面将自动刷新
This gem adds support for foruda to Carrierwave
modify your Gemfile to add:
gem "carrierwave-foruda", gitee: "oscstudio/carrierwave-foruda"
Attention: carrierwave-foruda is only a sub-component for carrierwave. please install carrierwave at first. carrierwave-foruda Supports both local storage and foruda storage at same time.
Carrierwave.configure do |config|
config.foruda_enabled = true
config.foruda_host = "http://foruda.host"
config.foruda_token = "xxx"
config.application_id = "xxx"
end
And then in your uploader, set the storage to :foruda
class ModelAvatarUploader < CarrierWave::Uploader::Base
storage :foruda
## or you can override configuration in uploader like this:
self.foruda_enabled = true
self.foruda_host = "http://foruda.host"
self.foruda_token = "xxx"
self.application_id = "xxx"
end
To see more details about use Foruda
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。