-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: kv:key put no longer able to upload binary files #1254
Comments
Thanks for reporting this issue. I'll take a look. I suspect that we need a way to determine that the file contains binary data and therefore needs to be base64 encoded... |
Hi @petebacondarwin, it can actually be fixed by not using the have just tested this and it works, happy to PR if needs be |
Thanks @f5io |
What version of
Wrangler
are you using?2.0.8
What operating system are you using?
Mac
Describe the Bug
We've just upgraded from wrangler 1 -> 2. We were using
wrangler kv:key put
to upload images into KV from CLI. It seems in wrangler 2 those images get mangled when uploading.I believe it is related to this line and the fact that values are always passed as strings...
https://github.com/cloudflare/wrangler2/blob/e3ce82b0cbb5e5765fa09ab3322b42a5b75934e3/packages/wrangler/src/index.tsx#L2262-L2265
The text was updated successfully, but these errors were encountered: