class Fog::Backblaze::Storage::Real

Public Instance Methods

b2_get_upload_url(bucket_name) click to toggle source
# File lib/active_storage/service/backblaze_service.rb, line 113
def b2_get_upload_url(bucket_name)
  upload_url = @token_cache.fetch("upload_url/#{bucket_name}") do
    bucket_id = _get_bucket_id!(bucket_name)
    result = b2_command(:b2_get_upload_url, body: {bucketId: bucket_id})
    result.json
  end
  upload_url
end