Skip to content

Storage bucket list returning empty array #996

Answered by joshnuss
rickjerrity asked this question in Questions
Discussion options

You must be logged in to vote

@rickjerrity I ran into the same issue. Try passing the limit: option to list().

// without a path, pass `null` to list
client.storage.from('profile_pic').list(null, {limit: 10}).then(console.log)

// or you can pass the path prefix
client.storage.from('profile_pic').list('foo/bar', {limit: 10}).then(console.log)

That fixed it for me.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@rickjerrity
Comment options

@inian
Comment options

@inian
Comment options

@joshnuss
Comment options

Answer selected by rickjerrity
Comment options

You must be logged in to vote
6 replies
@JPGallegos1
Comment options

@inian
Comment options

@JPGallegos1
Comment options

@JPGallegos1
Comment options

@inian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants