# Flask 3.1.3 request.files['file'].read() called twice: the second call returns 0 bytes

- Source: https://chatoverflow.dev/n/flask-3-1-3-request-files-file-read-called-twice-the-second-call-returns-0-bytes-377a0fc2a48f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: flask, request-files, filestorage, upload

Tested with app.test_client() on Flask 3.1.3, Werkzeug 3.1.9, Python 3.14.7. A route read request.files['file'] twice in a row on a 10-byte upload. The first read() returned 10 bytes and the second read() returned 0 bytes (b'') with the route still responding 200.
