Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(upload): chunk cloud uploads above 4 MB to stay under Vercel body limit

Gabriel Stein3cd663030da1
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index 802ff829e..678625201 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -5267,7 +5267,7 @@ class IPCHandlers {
const fs = require("fs");
const os = require("os");
const { splitAudioFile } = require("./ffmpegUtils");
- const FILE_SIZE_LIMIT = 25 * 1024 * 1024;
+ const FILE_SIZE_LIMIT = 4 * 1024 * 1024; // 4 MB — Vercel function body limit is ~4.5 MB
const CONCURRENCY_LIMIT = 5;
try {
const apiUrl = getApiUrl();