From 71bb933649ba009cd537c2e973519d6e024c02a2 Mon Sep 17 00:00:00 2001 From: Emil Sadek Date: Sun, 6 Jun 2021 04:30:04 -0700 Subject: Fix title case Change capitalization to title case for consistency. --- docs/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 2bc0465..11eec78 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -627,7 +627,7 @@ Attribute GET Form fields POST Form fields File Uploa ============================== =============== ================ ============ -File uploads +File Uploads ------------ To support file uploads, we have to change the ``
`` tag a bit. First, we tell the browser to encode the form data in a different way by adding an ``enctype="multipart/form-data"`` attribute to the ```` tag. Then, we add ```` tags to allow the user to select a file. Here is an example: @@ -665,7 +665,7 @@ JSON Content Some JavaScript or REST clients send ``application/json`` content to the server. The :attr:`BaseRequest.json` attribute contains the parsed data structure, if available. -The raw request body +The Raw Request Body -------------------- You can access the raw body data as a file-like object via :attr:`BaseRequest.body`. This is a :class:`BytesIO` buffer or a temporary file depending on the content length and :attr:`BaseRequest.MEMFILE_MAX` setting. In both cases the body is completely buffered before you can access the attribute. If you expect huge amounts of data and want to get direct unbuffered access to the stream, have a look at ``request['wsgi.input']``. -- cgit v1.2.1