Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
Setting Metadata on azure blob in js

I see examples for c#, but I cannot find implement info for js. How do I set metadata for blob in js?

const metadata = {name, selection}

await blockBlobClient.upload(file);
await blockBlobClient.setMetadata(container, file, metadata)

I am looking at this link and it calls setMetadata but it doesn't set:

http://azure.github.io/azure-storage-node/BlobService.html#setBlobMetadata__anchor

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Thank you @gaurav mantri for your suggestion..

Converting your suggestion as answer to help reach other community members.

solution by @gaurav mantri:

To set metadata for blob in js ,you may use

setMetadata(metadata?: Metadata, options?: BlobSetMetadataOptions) when using new azure-storage SDK (azure sdk for java script) as the old azure-storage SDK is deprecated .

Please Refer these for the same :

BlockBlobClient class | Microsoft Docs

BlobSetMetadataOptions interface | Microsoft Docs

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!