8000 is any way to cancel the upload session? · Issue #45 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

is any way to cancel the upload session? #45

Open

Description

@39499740
No description provided.

Activity

  1. anhnguyenthe312 commented on Aug 18, 2022

    @anhnguyenthe312

    same question, currently if I use CancelableOperation the operation of upload still continue until success/fail.

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    Yes — in the fork (0.2.0) a MinioCancellationToken aborts the upload in
    flight:

    final token = MinioCancellationToken();
    final minio = Minio(..., cancellationToken: token);
    await minio.putObject('bucket', 'object', data);   // aborts when token.cancel() runs

    The same token covers every other request of that client: a request that has
    not been sent yet fails with a MinioRequestCancelledError instead of going
    out, and the one that is in flight is aborted.

  3. 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