diff --git a/docs/config.rst b/docs/config.rst index ab1923ba..e782bc7f 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -93,7 +93,8 @@ The following configuration values are used internally by Flask: .. versionadded:: 0.5 ``SERVER_NAME`` -.. versionadded:: ``MAX_CONTENT_LENGTH`` +.. versionadded:: 0.6 + ``MAX_CONTENT_LENGTH`` Configuring from Files ---------------------- diff --git a/docs/patterns/fileuploads.rst b/docs/patterns/fileuploads.rst index 884925cf..99f009c7 100644 --- a/docs/patterns/fileuploads.rst +++ b/docs/patterns/fileuploads.rst @@ -132,7 +132,7 @@ webserver's memory if the files are reasonable small otherwise in a temporary location (as returned by :func:`tempfile.gettempdir`). But how do you specify the maximum file size after which an upload is aborted? By default Flask will happily accept file uploads to an unlimited amount of -memory, but you can limit that by setting the `MAX_CONTENT_LENGTH` +memory, but you can limit that by setting the ``MAX_CONTENT_LENGTH`` config key:: from flask import Flask, Request