|
|
@ -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 |
|
|
|
If a larger file is transmitted, Flask will raise a |
|
|
|
:exc:`~werkzeug.exceptions.RequestEntityTooLarge` exception. |
|
|
|
: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 |
|
|
|
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 |
|
|
|
as well by subclassing the request object. For more information on that |
|
|
|
consult the Werkzeug documentation on file handling. |
|
|
|
consult the Werkzeug documentation on file handling. |
|
|
|