Skip to content

Commit

Permalink
Update requests.md (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Aug 6, 2022
1 parent 0b5b9c4 commit d81d8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ contents = await form["upload_file"].read()

!!! info
As settled in [RFC-7578: 4.2](https://www.ietf.org/rfc/rfc7578.txt), form-data content part that contains file
assumed to have `name` and `filename` fields in `Content-Disposition` header: `Content-Disposition: form-
data; name="user"; filename="somefile"`. Though `filename` field is optional according to RFC-7578, it helps
assumed to have `name` and `filename` fields in `Content-Disposition` header: `Content-Disposition: form-data;
name="user"; filename="somefile"`. Though `filename` field is optional according to RFC-7578, it helps
Starlette to differentiate which data should be treated as file. If `filename` field was supplied, `UploadFile`
object will be created to access underlying file, otherwise form-data part will be parsed and available as a raw
string.
Expand Down

0 comments on commit d81d8c8

Please sign in to comment.