vercel / storage

Vercel Postgres, KV, Blob, and Edge Config
https://vercel.com/storage
Apache License 2.0
480 stars 52 forks source link

@vercel/blob - Folder entry coming through as blob #640

Open Kvek opened 3 months ago

Kvek commented 3 months ago

Hi, When fetching the blobs using the list(), I noticed the sub folder (trending) containing the data coming through as an entry.

Folder structure in dashboard

Blob project

trending

...images

This happens for both folded and the default expanded modes.

config

import { list } from "@vercel/blob";

  const { blobs } = await list({
    mode: "folded",
    prefix: "trending/"
  });

Screenshot 2024-03-26 at 20 44 41

Screenshot 2024-03-26 at 20 45 15

Is this intended behaviour?


I also receive this error presumably because the blob's url entry isn't a valid image url.

The requested resource isn't a valid image for https://3gzqlfvwgaygv21a.public.blob.vercel-storage.com/trending/ 
received application/octet-stream

Thanks.

GustavoBonfimS commented 1 month ago

Same here