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