Element.get_files#
- Element.get_files(with_content=False) List[File][source]#
Gets uploaded files from element.
This method is useful when uploading files using
<input type="file">element.Note
Remember to validate the names, types, and sizes of the uploaded files before using them.
- Parameters:
with_content (bool, default=False) – If
True, the contents of the files will be included in the output. It is recommended to keep this parameter asFalseand useFile.save()instead after validating the files.- Returns:
A list of File objects.
- Return type:
list(File)
See also