Skip to main content

FletUpload

Flet app uploads handler.

Parameters:

  • upload_dir (str) - An absolute path to a directory with uploaded files.
  • max_upload_size (Optional[int], default: None) - maximum size of a single upload, bytes. Unlimited if None.
  • secret_key (Optional[str], default: None) - secret key to sign and verify upload requests.

Methods

Methods

handleasync

handle(request: Request)

Handle file upload.

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