IFrameElement.get_files#

IFrameElement.get_files(with_content=False) List[File]#

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 as False and use File.save() instead after validating the files.

Returns:

A list of File objects.

Return type:

list(File)

See also

File