question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way to assign custom metadata while uploading object using Storage ?

See original GitHub issue

I am uploading a video file to S3 using Storage , is there any way to send custom metadata along with the request . This is my current code:

Storage.put(uuidv4() + ".mp4", {
    level: 'public',
    contentType: 'audio/mp4',
    x-amz-meta-xyz:''
  })

I am getting error when using “x-amz-meta-key” which is standard way to define custom metadata.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
athJcommented, Apr 10, 2019

Gotcha , this needs to be mentioned in the Amplify docs.Thanks @elorzafe

1reaction
powerful23commented, Mar 4, 2019

@athJ this is a feature request since currently there is no way to do that. We will discuss it in our team meeting. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with object metadata - Amazon Simple Storage Service
Name Description Can user modify the value? Date Current date and time. No Content‑Disposition Object presentational information. Yes Content‑Length Object size in bytes. No
Read more >
Object metadata | Cloud Storage - Google Cloud
Go to examples. This page discusses the commonly-used metadata fields that are stored along with objects in Cloud Storage.
Read more >
Setting Custom metadata to an object in Google Cloud Storage
This is very inconvenient when copying from bucket to bucket as it will add an extra custom metadata instead of replacing the appropriate...
Read more >
Use file metadata with Cloud Storage on Web - Firebase
You can update file metadata at any time after the file upload completes by using the updateMetadata() method. Refer to the full list...
Read more >
Custom Metadata Types Limitations - Salesforce Help
Required Editions · You can add a custom metadata type that has a picklist field with inactive values to a managed package, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found