Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: add error logging
Marc Seitze57e033f53ea
diff --git a/pages/api/file/tus/[[...file]].ts b/pages/api/file/tus/[[...file]].tsindex e4db5f0e..7f3062c0 100644--- a/pages/api/file/tus/[[...file]].ts+++ b/pages/api/file/tus/[[...file]].ts@@ -23,7 +23,7 @@ const tusServer = new Server({respectForwardedHeaders: true,datastore: new S3Store({partSize: 8 * 1024 * 1024, // each uploaded part will have ~8MiB,- // expirationPeriodInMilliseconds: 1000 * 60 * 60 * 3, // 3 hours+ expirationPeriodInMilliseconds: 1000 * 60 * 60 * 3, // 3 hourss3ClientConfig: {bucket: process.env.NEXT_PRIVATE_UPLOAD_BUCKET as string,region: process.env.NEXT_PRIVATE_UPLOAD_REGION as string,@@ -54,6 +54,9 @@ const tusServer = new Server({const id = (req.url as string).split("/api/file/tus/")[1];return Buffer.from(id, "base64url").toString("utf-8");},+ onResponseError(req, res, err) {+ console.error(err);+ },});export default function handler(req: NextApiRequest, res: NextApiResponse) {