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
668 669 670 671 672 673 674 675 676 677 678 679 |
|
write
async
¶
write(data)
PARAMETER | DESCRIPTION |
---|---|
data
|
TYPE:
|
Source code in lilya/datastructures.py
689 690 691 692 693 694 695 |
|
read
async
¶
read(size=-1)
PARAMETER | DESCRIPTION |
---|---|
size
|
TYPE:
|
Source code in lilya/datastructures.py
697 698 699 700 |
|
seek
async
¶
seek(offset)
PARAMETER | DESCRIPTION |
---|---|
offset
|
TYPE:
|
Source code in lilya/datastructures.py
702 703 704 705 |
|
close
async
¶
close()
Source code in lilya/datastructures.py
707 708 709 710 |
|
validate
classmethod
¶
validate(v)
PARAMETER | DESCRIPTION |
---|---|
v
|
TYPE:
|
Source code in esmerald/datastructures/base.py
60 61 62 63 64 |
|