fix MAX_CONTENT_LENGTH calc to match description
description presents value as megabytes, so it should be x1024 instead of x1000
This commit is contained in:
parent
095651be9e
commit
b5508f6e4c
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ config key::
|
|||
from flask import Flask, Request
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1000 * 1000
|
||||
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
|
||||
|
||||
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