Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: reduce payload size

Marc Seitz4d2f77d7c879
diff --git a/pages/api/file/tus/[[...file]].ts b/pages/api/file/tus/[[...file]].ts
index 6a8c172a..13886b80 100644
--- a/pages/api/file/tus/[[...file]].ts
+++ b/pages/api/file/tus/[[...file]].ts
@@ -24,7 +24,7 @@ const tusServer = new Server({
// `path` needs to match the route declared by the next file router
path: "/api/file/tus",
datastore: new S3Store({
- partSize: 8 * 1024 * 1024, // each uploaded part will have ~8MiB,
+ partSize: 4.5 * 1024 * 1024, // each uploaded part will have ~8MiB,
s3ClientConfig: {
bucket: process.env.NEXT_PRIVATE_UPLOAD_BUCKET as string,
region: process.env.NEXT_PRIVATE_UPLOAD_REGION as string,