Storage Reference URL

Represents a stateful public url for a single file.

let url = storage.ref('hello').url;
await url.load();
url.value // → https://…

ref → StorageReference

Returns a storage reference associated with this metadata instance.

State properties

  • isLoadingBoolean
  • isLoadedBoolean
  • isErrorBoolea
  • errorObject | null
  • existsBoolean | undefined

load(opts) → Promise<StorageReferenceURL>

Loads public URL for associated storage reference.

  • optional → Boolean (defaults to false)

If file does not exist and optional is false, load Promise rejects with an object not found error.

value → String

Public URL for associated storage reference.

serialized → object

Returns json representation of most important properties.