Kein Upload-Größenlimit — RAM/Disk-Erschöpfung möglich #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.