8000 MultipartUpload example · Issue #102 · xtyxtyx/minio-dart · GitHub
[go: up one dir, main page]

Skip to content

MultipartUpload example #102

Open
Open

Description

@nghia10216

please provide me an example of MultipartUpload

Activity

  1. tomasatisocco commented on Oct 8, 2025

    @tomasatisocco

    @nghia10216 Did you find a way to do MultipartUpload? I'm analyzing on using this package or build something by my own and your opinion would be valuable, thanks!

  2. arrrrny commented on Oct 22, 2026

    @arrrrny

    There is an example now:
    example/multipart_upload_example.dart. It shows the whole lifecycle —
    initiating a multipart upload, uploading the parts and completing the upload.

    For the API itself: initiateNewMultipartUpload, uploadPart,
    completeMultipartUpload, listParts and listIncompleteUploads are all
    public. uploadPart is new in the fork (0.2.0) — it uploads one part of an
    upload, so an application can drive the multipart upload itself, for example
    to send the parts in parallel:

    final uploadId = await minio.initiateNewMultipartUpload('bucket', 'object', null);
    final etag = await minio.uploadPart('bucket', 'object', uploadId, 1, partBytes);
    await minio.completeMultipartUpload(
      'bucket',
      'object',
      uploadId,
      [CompletedPart(etag, 1)],
    );
    ``` Two bugs in that area
    were fixed in the fork: `listParts` read the wrong XML elements and therefore
    always reported an empty page, and `listIncompleteUploads` sent the `uploads`
    parameter twice, which broke the signature of every request.
  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