method

url_for_direct_upload

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: GCSService
url_for_direct_upload(key, expires_in:, checksum:, **) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 110
    def url_for_direct_upload(key, expires_in,, checksum,, **)
      instrument :url, key: key do |payload|
        generated_url = bucket.signed_url key, method: "PUT", expires: expires_in, content_md5: checksum

        payload[:url] = generated_url

        generated_url
      end
    end
Register or log in to add new notes.