Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: A file parameter is not a field #127

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading