StorageReference
@firecms/core / StorageReference
Interface: StorageReference
Section titled “Interface: StorageReference”Defined in: types/storage.ts:156
Represents a reference to a Google Cloud Storage object. Developers can upload, download, and delete objects, as well as get/set object metadata.
Properties
Section titled “Properties”bucket
Section titled “bucket”bucket:
string
Defined in: types/storage.ts:171
The name of the bucket containing this reference’s object.
fullPath
Section titled “fullPath”fullPath:
string
Defined in: types/storage.ts:175
The full path of this object.
name:
string
Defined in: types/storage.ts:180
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’.
parent
Section titled “parent”parent:
StorageReference|null
Defined in: types/storage.ts:186
A reference pointing to the parent location of this reference, or null if this reference is the root.
root:
StorageReference
Defined in: types/storage.ts:167
A reference to the root of this object’s bucket.
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: types/storage.ts:162
Returns a gs:// URL for this object in the form
gs://<bucket>/<path>/<to>/<object>
Returns
Section titled “Returns”string
The gs:// URL.