Skip to content
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: Large File Uploads with Local Mode #5821

Open
helloimalastair opened this issue May 14, 2024 · 0 comments
Open

🐛 BUG: Large File Uploads with Local Mode #5821

helloimalastair opened this issue May 14, 2024 · 0 comments
Labels
bug Something that isn't working

Comments

@helloimalastair
Copy link
Contributor

helloimalastair commented May 14, 2024

Which Cloudflare product(s) does this pertain to?

R2, Wrangler core

What version(s) of the tool(s) are you using?

3.55.0[Wrangler]

What version of Node are you using?

22.1.0

What operating system and version are you using?

MacOS Sonoma 14.4.1

Describe the Bug

Observed behavior

When attempting to "upload" a large object to a local R2 instance via wrangler r2 object put <obj_name>, it can fail with the error ✘ [ERROR] Error: Wrangler only supports uploading files up to 300 MiB in size. While this makes sense when pushing to a remote bucket due to API size limits, it doesn't make as much sense when in local mode.

Expected behavior

wrangler should be able to push objects above the max size limits when in local mode.

Steps to reproduce

  1. Create wrangler project with R2 Binding.
  2. Create/find file above 300 MB limit.
  3. Run wrangler r2 object put BUCKET_NAME/directory/file.name -f=YOUR_FILE.name --local

I have a one-line fix on my fork, but remembered to make an issue before submitting a PR.

@helloimalastair helloimalastair added the bug Something that isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant