Vercel Blob download button fails for text files larger than 999B

Hi!

When attempting to download an item from Vercel Blob in the Vercel dashboard, either via the menu button when viewing a list of items and then clicking Download, or by viewing the individual item and clicking the Download button that’s on the opposite side to the ‘Copy URL’ button, if the file is a text file (I’ve tested .txt and .json but I suspect any plain text file will have the problem), and if the file is over 999B, instead of downloading it correctly, an empty version of the file is downloaded.

This is reproducible by creating a new Blob Store, and uploading two .txt files, one with 999 characters, and one with 1000 characters. The former will download just fine, whereas the latter will come back as an empty file, without any warning or error.

I’ve tested this on macOS and Linux, in Firefox and Chrome, so I doubt it’s a device or browser issue.

As a workaround for now, when needing to get at text items in my blob stores in a UI-based-way, I’ve been clicking ‘Copy URL’, opening up that URL in a new browser tab, and then downloading that page - which works but is clunky.

Not particularly relevant to the issue, but my use case is a PWA which has form submissions, and those form submissions are temporarily (for the default of a month but we may lower that in the future) stored as JSON in Vercel Blob, along with links to images which are thrown into a different Blob Store. There are occasions we need to get at the raw data submitted and the easiest way to do that is to download an individual form record JSON file.

Any update on whether this is being looked into and/or approximate timelines for a fix would be super helpful, thanks!

Hey, @burntcustard! Welcome to the Vercel Community :waving_hand:

One of our engineers merged a fix for this. Does it work for you now?

Hi @pawlean, thanks for the speedy response and fix - it’s working perfectly now!

1 Like

Great to hear! Let us know if we can help with anything else :slightly_smiling_face: See you around the Community ▲

1 Like