feat: Site videos up to 500 MB
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 6m23s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m6s

Dropstar uploads the six videos themselves; 100 MB was our own limit and
could stop a longer video in the videos area. ClamAV scans up to 2000 MiB,
so 500 MB is still scanned.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 15:26:36 -03:00
parent 07ee38d677
commit 60105e7cbe
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ CATALOG = {
'retirada': 'Retirada em Franca em 24 h',
'sala': 'A sala às 3 da manhã',
}
VIDEO_MAX = 100 * 1024 * 1024
VIDEO_MAX = 500 * 1024 * 1024
CAPTIONS_MAX = 1024 * 1024
@@ -46,7 +46,7 @@ def _kind(upload):
return 'video/webm', b'\x1a\x45\xdf\xa3', 0
if name.endswith('.vtt') and upload['size'] <= CAPTIONS_MAX:
return 'text/vtt', b'WEBVTT', 0
raise HTTPException(422, 'Use MP4/WebM de até 100 MB ou legenda VTT de até 1 MB.')
raise HTTPException(422, 'Use MP4/WebM de até 500 MB ou legenda VTT de até 1 MB.')
def _checked_upload(c, uid, identity, expected):

View File

@@ -165,7 +165,7 @@
</section>
<section class="panel clip" id="site-videos-panel" hidden>
<div class="phead"><h2>Vídeos do Site</h2></div>
<p class="phint">Envie o vídeo em MP4 ou WebM (até 100 MB). A legenda VTT é opcional. Escolha o produto para o vídeo flutuante e publique quando estiver pronto.</p>
<p class="phint">Envie o vídeo em MP4 ou WebM (até 500 MB). A legenda VTT é opcional. Escolha o produto para o vídeo flutuante e publique quando estiver pronto.</p>
<div id="site-videos-list" class="siteVideoList"></div>
</section>
</section>