UploadFile
class¶
This is the reference for the main object UploadFile
that contains all the parameters,
attributes and functions.
esmerald.UploadFile ¶
UploadFile(file, *, size=None, filename=None, headers=None)
Bases: UploadFile
Adding pydantic specific functionalitty for parsing.
PARAMETER | DESCRIPTION |
---|---|
file |
TYPE:
|
size |
TYPE:
|
filename |
TYPE:
|
headers |
TYPE:
|
Source code in .venv/lib/python3.8/site-packages/starlette/datastructures.py
436 437 438 439 440 441 442 443 444 445 446 447 |
|
write
async
¶
write(data)
PARAMETER | DESCRIPTION |
---|---|
data |
TYPE:
|
Source code in .venv/lib/python3.8/site-packages/starlette/datastructures.py
459 460 461 462 463 464 465 466 |
|
read
async
¶
read(size=-1)
PARAMETER | DESCRIPTION |
---|---|
size |
TYPE:
|
Source code in .venv/lib/python3.8/site-packages/starlette/datastructures.py
468 469 470 471 |
|
seek
async
¶
seek(offset)
PARAMETER | DESCRIPTION |
---|---|
offset |
TYPE:
|
Source code in .venv/lib/python3.8/site-packages/starlette/datastructures.py
473 474 475 476 477 |
|
close
async
¶
close()
Source code in .venv/lib/python3.8/site-packages/starlette/datastructures.py
479 480 481 482 483 |
|
validate
classmethod
¶
validate(v)
PARAMETER | DESCRIPTION |
---|---|
v |
TYPE:
|
Source code in esmerald/datastructures/base.py
59 60 61 62 63 |
|