Skip to main content
Version: 3.0.0-beta

Interface: StorageReference

Represents a reference to a Google Cloud Storage object. Developers can upload, download, and delete objects, as well as get/set object metadata.

Properties​

bucket​

bucket: string

The name of the bucket containing this reference's object.

Defined in​

packages/firecms_core/src/types/storage.ts:171


fullPath​

fullPath: string

The full path of this object.

Defined in​

packages/firecms_core/src/types/storage.ts:175


name​

name: string

The short name of this object, which is the last component of the full path. For example, if fullPath is 'full/path/image.png', name is 'image.png'.

Defined in​

packages/firecms_core/src/types/storage.ts:180


parent​

parent: StorageReference

A reference pointing to the parent location of this reference, or null if this reference is the root.

Defined in​

packages/firecms_core/src/types/storage.ts:186


root​

root: StorageReference

A reference to the root of this object's bucket.

Defined in​

packages/firecms_core/src/types/storage.ts:167

Methods​

toString()​

toString(): string

Returns a gs:// URL for this object in the form gs://<bucket>/<path>/<to>/<object>

Returns​

string

The gs:// URL.

Defined in​

packages/firecms_core/src/types/storage.ts:162

Sign up to our newsletter to get the latest news and updates. No spam!