file_upload
- class trame.app.file_upload.ClientFile(file_state_variable=None)
Bases:
object
Helper class that make it easier to handle file from the trame state
This class behave like a decorator to the state variable so you can easily access its various properties and content.
- property is_empty
Return true if the file is empty
- property name
File name
- property size
File size in Bytes
- property modified_time
Modified time
- property mime_type
Mime type of the file
- property content
Bytes content of the file
- property info
Return a string summarizing the file information