8000 Example on Flutter Web uploading image · Issue #64 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

Example on Flutter Web uploading image #64

Open

Description

@tonyteo72

Can someone show an example of how to use Minio in Flutter Web ?
I am new and cannot find any example on it.
My goal is straight forward. In Flutter Web, pick an image with ImagePicker and upload to S3.
Thanks and appreciate for any expert assistance.

Activity

  1. arrrrny commented on Oct 22, 2026

    @arrrrny

    There is an example now: example/web_upload_example.dart. It shows the
    upload half of a browser upload: the bytes of the file the user picked (read
    with package:web or dart:html) are handed to putObject as a
    Stream<Uint8List>, and the progress is reported. The example itself stays
    free of dart:html, so it runs on the server too.

    Two things to keep in mind on the web: the request is signed in the browser,
    so the access key is visible to the user — use a presigned URL for anything
    that matters, and make sure the bucket allows CORS for your origin.

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    This ships in zuraffa_minio — the maintained fork of this package, which upstream has not touched since August 2025.

    The fork keeps the API of the original package unchanged, so moving over is an import swap:

    // before
    import 'package:minio/minio.dart';
    // after
    import 'package:zuraffa_minio/minio.dart';

    Source, the changelog and the sweep of the open issues of this tracker: https://github.com/arrrrny/zuraffa_minio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0