Skip to content

Commit

Permalink
allow large uploads in local wrangler (#6064)
Browse files Browse the repository at this point in the history
  • Loading branch information
helloimalastair committed Jun 16, 2024
1 parent 267761b commit 84e6aeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wise-ravens-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Wrangler is now able to upload files to local R2 buckets above the 300 MiB limit
2 changes: 1 addition & 1 deletion packages/wrangler/src/r2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export function r2(r2Yargs: CommonYargsArgv) {
objectSize = blob.size;
}

if (objectSize > MAX_UPLOAD_SIZE) {
if (objectSize > MAX_UPLOAD_SIZE && !local) {
throw new FatalError(
`Error: Wrangler only supports uploading files up to ${prettyBytes(
MAX_UPLOAD_SIZE,
Expand Down

0 comments on commit 84e6aeb

Please sign in to comment.