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.

More efficient way to get file's metadata for list of files than Storage.list() -> Storage.get({download:true})?

See original GitHub issue

I have an application that lists the files uploaded by a user. I’m using Storage.list() for this. I would like to use each file’s metadata (x-amz-meta-owner) to enable/disable a button. For now, I’m using Storage.get() with download:true to get the metadata, (I’ve added x-amz-meta-owner in the CORS configuration). I’ve found this to be slow and expensive, as it has to download each file as a UIntArray. Is there a more efficient way to get the metadata for each file than this?

Thank you.

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
mrichmancommented, May 27, 2020

I’m trying to do this as well.

0reactions
abdallahshaban557commented, Aug 10, 2022

Closing this issue as a duplicate of #1550

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storage - Download files - JavaScript - AWS Amplify Docs
Learn more about how to download / retrieve files using the Storage category of Amplify - JavaScript - AWS Amplify Docs.
Read more >
Need name of list of .bak Files (Metadata of Files) from Azure ...
I have a Blob Container on Azure and This container has Block Blobs (Database Backups). There are more than 100 files and I...
Read more >
How to list custom metadata associated with all uploaded files ...
To make matters even more confusing...I've found that with amplify, if I call Storage.get() with the hidden option { download: true} as my ......
Read more >
Managing Metadata (File and File Store Attributes)
The Files class includes methods that can be used to obtain a single attribute of ... Returns true if the specified Path locates...
Read more >
Get an object's metadata | Cloud Storage
Explore further. For detailed documentation that includes this code sample, see the following: Use customer-managed encryption keys · Use file metadata ...
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