Skip to content

FletUpload

Flet app uploads handler.

Parameters:

  • upload_dir (str) –

    An absolute path to a directory with uploaded files.

  • max_upload_size (int | None, default: None ) –

    maximum size of a single upload, bytes. Unlimited if None.

  • secret_key (str | None, default: None ) –

    secret key to sign and verify upload requests.

Methods

  • handle

    Handle file upload.

Methods#

handle async #

handle(request: Request)

Handle file upload.

Upload must be an non-encoded (raw) file in the request body.