Skip to content
Myr

Add tips for 413 connection reset issue

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Grey Li · committed by David Lord · parent abba4b2 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/patterns/fileuploads.rst+6 added
151 unmodified lines
152The code above will limit the maximum allowed payload to 16 megabytes.153If a larger file is transmitted, Flask will raise a154:exc:`~werkzeug.exceptions.RequestEntityTooLarge` exception.155156.. admonition:: Connection Reset Issue157158 When using the local development server, you may get a connection159 reset error instead of a 413 response. You will get the correct160 status response when running the app with a production WSGI server.161162This feature was added in Flask 0.6 but can be achieved in older versions163as well by subclassing the request object. For more information on that164consult the Werkzeug documentation on file handling.165
25 unmodified lines