Skip to content

Commit

Permalink
doc: A file parameter is not a field (#127)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
yecril23pl and Kludex authored Dec 6, 2024
1 parent 6f3295b commit 4bffa0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def simple_app(environ, start_response):

# The following two callbacks just append the name to the return value.
def on_field(field):
ret.append(b"Parsed field named: %s" % (field.field_name,))
ret.append(b"Parsed value parameter named: %s" % (field.field_name,))

def on_file(file):
ret.append(b"Parsed file named: %s" % (file.field_name,))
ret.append(b"Parsed file parameter named: %s" % (file.field_name,))

# Create headers object. We need to convert from WSGI to the actual
# name of the header, since this library does not assume that you are
Expand Down Expand Up @@ -55,7 +55,7 @@ Date: Sun, 07 Apr 2013 01:40:52 GMT
Server: WSGIServer/0.1 Python/2.7.3
Content-type: text/plain

Parsed field named: foo
Parsed value parameter named: foo
```

For a more in-depth example showing how the various parts fit together, check out the next section.
Expand Down

0 comments on commit 4bffa0c

Please sign in to comment.