Skip to content

Commit c4f91a1

Browse files
committed
bump max file size to 10GB
1 parent 5f2ed40 commit c4f91a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/** Maximum file size in bytes (1GB) */
2-
export const MAX_FILE_SIZE = 1 * 1024 * 1024 * 1024
1+
/** Maximum file size in bytes (10GB) */
2+
export const MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024

worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ interface Env {
22
BUCKET: R2Bucket
33
}
44

5-
const MAX_FILE_SIZE = 1 * 1024 * 1024 * 1024 // 1GB
5+
const MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024 // 10GB
66
const CHUNK_SIZE = 80 * 1024 * 1024 // 80MB - must match frontend
77
const MAX_AGE_MS = 60 * 60 * 1000 // 1 hour
88
const CORS_HEADERS = {

0 commit comments

Comments
 (0)