mitul
01/26/2022, 2:25 AMjs
async function getPath() {
try {
setLoading(true)
let { data, error, status } = await supabase.storage
.from("user-library")
.list("", {
limit: 100,
})
if(error) {
throw error
}
const imageURL = data.map(item => URL.createObjectURL(item)) /* THIS LINE */
console.log(imageURL)
} catch (error) {
console.log("error", error);
}
}
garyaustin
01/26/2022, 3:11 AMmitul
01/26/2022, 3:12 AMgaryaustin
01/26/2022, 3:13 AMmitul
01/26/2022, 3:14 AM