Merge pull request #3332 from Eido95/patch-1

docs: Change max content length value to megabyte
This commit is contained in:
David Lord 2019-08-24 09:09:32 -07:00 committed by GitHub
commit db061cf736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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