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
644 645 646 647 648 649 650 651 652 653 654 655 |
|
write
async
¶
write(data)
PARAMETER | DESCRIPTION |
---|---|
data |
TYPE:
|
Source code in lilya/datastructures.py
665 666 667 668 669 670 671 |
|
read
async
¶
read(size=-1)
PARAMETER | DESCRIPTION |
---|---|
size |
TYPE:
|
Source code in lilya/datastructures.py
673 674 675 676 |
|
seek
async
¶
seek(offset)
PARAMETER | DESCRIPTION |
---|---|
offset |
TYPE:
|
Source code in lilya/datastructures.py
678 679 680 681 |
|
close
async
¶
close()
Source code in lilya/datastructures.py
683 684 685 686 |
|
validate
classmethod
¶
validate(v)
PARAMETER | DESCRIPTION |
---|---|
v |
TYPE:
|
Source code in esmerald/datastructures/base.py
60 61 62 63 64 |
|