Skip to main content

Flet Dropzone control

Dropzone control for Flet integrating desktop_drop

Installation

pip install flet-dropzone

⚠️ Please build once before running.
⚠️ Please build once before running.
⚠️ Please build once before running.

for windows user:

flet build windows -v

for macOS user:

flet build macos -v

for linux user:

flet build linux -v

for web user:

flet build web -v

Example

import flet as ft

import flet_dropzone as ftd


def main(page: ft.Page):
    page.vertical_alignment = ft.MainAxisAlignment.CENTER
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER

    async def on_dropped(e: ftd.DropzoneEvent):
        for file in e.files:
            data = await e.control.read_bytes(file)
            print(f"Dropped: {file.name} ({len(data)} bytes) from {file.path}")

    page.add(
        ftd.Dropzone(
            content=ft.Container(
                ft.Text("Drop here!"),
                width=500,
                height=500,
                alignment=ft.Alignment.CENTER,
                bgcolor="red",
            ),
            on_dropped=on_dropped,
            on_entered=lambda e: print("Entered"),
            on_exited=lambda e: print("Exited"),
        )
    )


ft.run(main)

DropzoneEvent.files is a list of DropzoneFile objects with name and path properties. On desktop platforms path is a real file path, while on web it is a temporary blob: URL — use Dropzone.read_bytes() to get the file content on any platform.

References

Metadata

Release files for flet-dropzone 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flet-dropzone 0.4.0
File Size Uploaded Provenance Actions
flet_dropzone-0.4.0.tar.gz 17.8 kB Without provenance Details for flet_dropzone-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flet-dropzone 0.4.0
File Interpreter ABI Platform Actions
flet_dropzone-0.4.0-py3-none-any.whl Python 3 none any Details for flet_dropzone-0.4.0-py3-none-any.whl

Total release size: 36.9 kB

Release files / flet_dropzone-0.4.0.tar.gz

Download URL flet_dropzone-0.4.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dede0c401dd20d0d90c950d1dcb396664b11da25da8a152b2770ee2bc825c44b
BLAKE2b-256 checksum
How to use checksums
74a3fc72d64a7f3756d21636715a80b9632aca58ac3751550d96b0db929dd26b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / flet_dropzone-0.4.0-py3-none-any.whl

Download URL flet_dropzone-0.4.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7e47c5ffed70d09ecd9079454f7678f9d4d4bd88cf1432f7e12489ca4987a6d
BLAKE2b-256 checksum
How to use checksums
df671d07086500987ec47454d558ec408405498ac2ac9ac4896039cec3cfdc4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for flet-dropzone 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page