More efficient way to get file's metadata for list of files than Storage.list() -> Storage.get({download:true})?
See original GitHub issueI 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:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m trying to do this as well.
Closing this issue as a duplicate of #1550