Skip to content

storage blob upload from string incorrect #389

@jeremymeng

Description

@jeremymeng

await blockBlobClient.upload(fileContents, fileContents.length);

we should not pass string length to blobClient.upload(). The methods take byte length, not string length which can be different and could leads to data corruption.

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