Flowdock
method

url_for_direct_upload

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: AzureStorageService
url_for_direct_upload(key, expires_in:, content_type:, content_length:, 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/azure_storage_service.rb, line 89
    def url_for_direct_upload(key, expires_in,, content_type,, content_length,, checksum))
      instrument :url, key: key do |payload|
        generated_url = signer.signed_uri(
          uri_for(key), false,
          service: "b",
          permissions: "rw",
          expiry: format_expiry(expires_in)
        ).to_s

        payload[:url] = generated_url

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