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: DataUpload
Adding pydantic specific functionalitty for parsing.
PARAMETER | DESCRIPTION |
---|---|
file
|
TYPE:
|
size
|
TYPE:
|
filename
|
TYPE:
|
headers
|
TYPE:
|
Source code in lilya/datastructures.py
641 642 643 644 645 646 647 648 649 650 651 652 |
|
write
async
¶
write(data)
PARAMETER | DESCRIPTION |
---|---|
data
|
TYPE:
|
Source code in lilya/datastructures.py
662 663 664 665 666 667 668 |
|
read
async
¶
read(size=-1)
PARAMETER | DESCRIPTION |
---|---|
size
|
TYPE:
|
Source code in lilya/datastructures.py
670 671 672 673 |
|
seek
async
¶
seek(offset)
PARAMETER | DESCRIPTION |
---|---|
offset
|
TYPE:
|
Source code in lilya/datastructures.py
675 676 677 678 |
|
close
async
¶
close()
Source code in lilya/datastructures.py
680 681 682 683 |
|
validate
classmethod
¶
validate(v)
PARAMETER | DESCRIPTION |
---|---|
v
|
TYPE:
|
Source code in esmerald/datastructures/base.py
60 61 62 63 64 |
|