Metadata is essential information about the file uploaded to the Cloud Storage Bucket. We can retrieve and update the metadata. For instance, we can update the content type of the file, we can update the timestamp, and so on. Firebase storage, by default, requires Firebase Authentication to retrieve and update the metadata, but developers can change this in the storage security rules.
File metadata
Retrieving File Metadata
Firebase storage can store file content and file metadata, which contains properties such as the content type and timestamp of the file created in Firebase storage. Using getMetadata() on the storage reference instance, we can retrieve the metadata of the file:
StorageReference storageRef = storage...