class documentation

class FileView(View): (source)

Constructor: FileView(**kwargs)

View In Hierarchy

Displays a file input.

Note

This view can be used on String or UploadedFile properties. If used on a String property, the value will be the base64-encoded contents. If used on a UploadedFile, the value will be a UploadedFile object.

Parameters
max_sizea maximum allowed size of the file, in bytes
max_size_error_messagean error message to display if the file exceeds the max size
typesa string containing the comma-separated file types to accept
Method __init__ Undocumented

Inherited from View:

Method clone Undocumented
Method kwargs_to_json Undocumented
Method to_json Undocumented
Instance Variable caption Undocumented
Instance Variable component Undocumented
Instance Variable componentsProps Undocumented
Instance Variable container Undocumented
Instance Variable description Undocumented
Instance Variable label Undocumented
Instance Variable placeholder Undocumented
Instance Variable read_only Undocumented
Instance Variable space Undocumented
Instance Variable _kwargs Undocumented
def __init__(self, **kwargs): (source) ΒΆ