Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can set meta data when uploading an image #49

Open
razhir opened this issue Aug 8, 2022 · 1 comment
Open

how can set meta data when uploading an image #49

razhir opened this issue Aug 8, 2022 · 1 comment
Labels

Comments

@razhir
Copy link

razhir commented Aug 8, 2022

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);
@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant