Browse Source

Merge pull request #2491 from mrnom/patch-1

Fix grammar/typos
pull/2492/head
David Lord 7 years ago committed by GitHub
parent
commit
82e66848e8
  1. 4
      docs/patterns/fileuploads.rst

4
docs/patterns/fileuploads.rst

@ -149,8 +149,8 @@ config key::
app = Flask(__name__) app = Flask(__name__)
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
The code above will limited the maximum allowed payload to 16 megabytes. The code above will limit the maximum allowed payload to 16 megabytes.
If a larger file is transmitted, Flask will raise an If a larger file is transmitted, Flask will raise a
:exc:`~werkzeug.exceptions.RequestEntityTooLarge` exception. :exc:`~werkzeug.exceptions.RequestEntityTooLarge` exception.
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

Loading…
Cancel
Save