Skip to content

how can set meta data when uploading an image #49

Open
@razhir

Description

@razhir

i want to set meta data when uploading an image like cache-control
this is an example from firebase documentation , i want using this in .net thanks for helping

import { getStorage, ref, uploadBytes } from "firebase/storage";

const storage = getStorage();
const storageRef = ref(storage, 'images/mountains.jpg');

// Create file metadata including the content type
/** @type {any} */
const metadata = {
  cacheControl: 'public,max-age=300',
};

// Upload the file and metadata
const uploadTask = uploadBytes(storageRef, file, metadata);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions