suitenumerique/docs
🐛 Big file upload fails as unknown error with poor UX feedback
开放
#2,460 创建于 2026年6月24日
bugfrontendgood first issue
仓库指标
- 星标
- (16,557 个星标)
- PR 合并指标
- (平均合并 15天 9小时) (30 天内合并 40 个 PR)
描述
Bug Report
Problematic behavior When trying to insert a big video file (>10MB) on docs.numerique.gouv.fr, an unknown error is show to the user.
Expected behavior/code
- Something less cryptic should happen
Steps to Reproduce
- Download the linked file,
- Create a new doc on docs.numerique.gouv.fr
- Drag and drop the file in the docs
- 💥
Environment
- Docs version: Today's version :)
- Instance url: docs.numerique.gouv.fr
Possible Solution
- Before the upload a check on the file size vs authorized file size should be performed, and the user notified for a nice UX (a link to the doc for embedding the video directly would be great).
Additional context/Screenshots
Nginx rejects the payload with a 413 that is not handled in the frontend currently, I do think it would be nicier to check the file size before upload.