I want to be able to get all of the URLs for the images stored within a directory "/gallery" in my blob storage. Preferably I would do this on the client side, but if that is not possible, I could do it on an edge function. How would I accomplish this? I am using Vite + Vue. I know that there is the list() function, but I cannot figure out how to use it. Any help is appreciated!
Vercel Staff
Hi , welcome to the Vercel Community!
Yes, you can use the list function to get a list of the images. You can do it from your API handler as follows: