feat(media): expandir limite de anexo e upload de video para 100mb

- Elevar MAX_TOTAL_SIZE no cliente movel para 100MB
- Expandir maxPayload do WebSocket no relay e gateway para 150MB
- Atualizar bundle OTA e APK nativo release em public/maestri-remote.apk
This commit is contained in:
Winícius 2026-11-21 22:46:53 -03:00
parent 6c075ab0b1
commit 7f8f871ab4
8 changed files with 9 additions and 9 deletions

View File

@ -4650,7 +4650,7 @@ function setupChatEvents() {
const fileList = Array.from(files);
const MAX_FILES = 10;
const MAX_TOTAL_SIZE = 25 * 1024 * 1024; // 25MB
const MAX_TOTAL_SIZE = 100 * 1024 * 1024; // 100MB
if (currentAttachments.length + fileList.length > MAX_FILES) {
alert(`Você pode anexar no máximo ${MAX_FILES} arquivos simultaneamente.`);
@ -4662,7 +4662,7 @@ function setupChatEvents() {
for (const file of fileList) {
if (currentTotalSize + file.size > MAX_TOTAL_SIZE) {
alert(`O arquivo "${file.name}" excede o limite máximo total de 25MB.`);
alert(`O arquivo "${file.name}" excede o limite máximo total de 100MB.`);
continue;
}

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,9 @@
{
"version": "1.0.30",
"buildId": "45eaf454",
"releasedAt": "2026-11-22T01:43:27.381Z",
"buildId": "2b19b259",
"releasedAt": "2026-11-22T01:45:51.720Z",
"bundleUrl": "/bundles/bundle-1.0.30.zip",
"latestUrl": "/bundles/bundle-latest.zip",
"checksum": "484c403ff165b0c3571811cff21e8c7d891494138431f56fbe924b3fbb0590ad",
"sizeBytes": 74103
"checksum": "51f053551f194cc6c082dedbbab16fc05a50ab5c81e8b497131e723c0e3c48ce",
"sizeBytes": 74104
}

Binary file not shown.

Binary file not shown.

View File

@ -157,7 +157,7 @@ export class GatewayDaemon {
}
console.log(`[Gateway] Conectando ao Relay Server em ${this.relayUrl}...`);
this.ws = new WebSocket(this.relayUrl);
this.ws = new WebSocket(this.relayUrl, { maxPayload: 150 * 1024 * 1024 });
this.ws.on('open', () => {
console.log('[Gateway] Conectado com sucesso ao Relay Server!');

View File

@ -82,8 +82,8 @@ const server = http.createServer(createRelayHttpHandler({
}));
// Setup dos Servidores WebSocket
const wssGateway = new WebSocketServer({ noServer: true });
const wssClient = new WebSocketServer({ noServer: true });
const wssGateway = new WebSocketServer({ noServer: true, maxPayload: 150 * 1024 * 1024 });
const wssClient = new WebSocketServer({ noServer: true, maxPayload: 150 * 1024 * 1024 });
server.on('upgrade', (request, socket, head) => {
const { pathname } = new URL(request.url, `http://${request.headers.host}`);