Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New methods and properties:
page.get_upload_url(file_name, expires)
page.overlay: List[Control]
New attribute in
flet.app()
:Fletd environment variable:
FLET_UPLOAD_ROOT_DIR
New
FilePicker
control:dialog_title: str
initial_directory: str
file_name
file_type
allowed_extensions
allow_multiple
result: FilePickerResultEvent
on_result
on_upload
(FilePickerUploadEvent
)pick_files(dialog_title, initial_directory, file_type, allowed_extensions, allow_multiple)
save_file(dialog_title, file_name, initial_directory, file_type, allowed_extensions)
get_directory_path(dialog_title, initial_directory)
upload(files: List[FilePickerUploadFile])
FilePickerUploadFile
class:name
upload_url
method
(PUT
(default),POST
)FilePickerUploadEvent
class:file_name
progress
error
FilePickerResultEvent
class:path
files: List[FilePickerFile]
FilePickerFile
class:name: str
path
size