Skip to content

Issue Uploading Large Files #1395

@AndrewKahr

Description

@AndrewKahr

I am trying to upload large files (10-20GB) using minio-js to a local minio instance, however, I am seeing it fail with the following error:

warning: The value of "size" is out of range. It must be >= 0 && <= 4294967296. Received 16_493_197_601

I am using the following to upload:

const mc = newMinio({
        accessKey,
        secretKey
      });

await mc.fPutObject(bucket, object, archivePath, {});

I've also seen it throw the following error:

data is too long

But in this scenario, the file is smaller (roughly 2GB), so I'm not sure what it's referring to in terms of file size limits.

I am using minio-js v8.0.5, node20, and the minio server is RELEASE.2025-03-12T18-04-18Z (go1.24.1 windows/amd64)

Guidance would be much appreciated and let me know if any other information would be helpful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions