Skip to content

Commit

Permalink
Merge pull request #2662 from greyli/patch-9
Browse files Browse the repository at this point in the history
Add tips for 413 connection reset issue
  • Loading branch information
davidism committed Apr 9, 2018
2 parents abba4b2 + 2f9be68 commit 8c0d8c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/patterns/fileuploads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ The code above will limit the maximum allowed payload to 16 megabytes.
If a larger file is transmitted, Flask will raise a
:exc:`~werkzeug.exceptions.RequestEntityTooLarge` exception.

.. admonition:: Connection Reset Issue

When using the local development server, you may get a connection
reset error instead of a 413 response. You will get the correct
status response when running the app with a production WSGI server.

This feature was added in Flask 0.6 but can be achieved in older versions
as well by subclassing the request object. For more information on that
consult the Werkzeug documentation on file handling.
Expand Down

0 comments on commit 8c0d8c1

Please sign in to comment.