Vercel Blob Storage's with addRandomSuffix: true does not work for filenames with spaces and other special characters #13704
DriesCruyskens
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a bug but I don't have time to create a repro so I'm putting it here so other people can at least find a solution.
When the plugin receives the new filename with random suffix from Vercel, it receives it URI encoded and saves it without decoding to the filename field:
https://fmvxowslianlssr7.public.blob.vercel-storage.com/text%20with%20spaces-XGyAWpmju4GO3Y8X4hU9sLLDL2nosE.jpg
. All other code in the plugin and in Payload assumes the original filename without URI encoding so this breaks functinality. In my case read access control but certainly other places too.patch package:
Beta Was this translation helpful? Give feedback.
All reactions