forked from orbit-oss/flask
Merge pull request #3332 from Eido95/patch-1
docs: Change max content length value to megabyte
This commit is contained in:
commit
db061cf736
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ config key::
|
|||
from flask import Flask, Request
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1000 * 1000
|
||||
|
||||
The code above will limit the maximum allowed payload to 16 megabytes.
|
||||
If a larger file is transmitted, Flask will raise a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue