server.py:136
await file.read()
python\nMAX_FILE_SIZE = 50 * 1024 * 1024 # 50 MB\nraw = await file.read(MAX_FILE_SIZE + 1)\nif len(raw) > MAX_FILE_SIZE:\n continue # oder HTTPException\n
Fixed in commit 69adfe6.
69adfe6
No dependencies set.
The note is not visible to the blocked user.
Problem\n\n
server.py:136—await file.read()liest die komplette Datei in den Arbeitsspeicher. Eine 500 MB RAW-Datei führt zu Speicherproblemen.\n\n## Fix\n\nMaximale Dateigröße per Upload begrenzen (z.B. 50 MB):\npython\nMAX_FILE_SIZE = 50 * 1024 * 1024 # 50 MB\nraw = await file.read(MAX_FILE_SIZE + 1)\nif len(raw) > MAX_FILE_SIZE:\n continue # oder HTTPException\nFixed in commit
69adfe6.