Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Content Type not being set #5

@ghost

Description

I've tried many things after reading the documentation on how to set the content type, and nothing works.

// var options = { contentSettings: { contentType: 'image/png'}};
var options = { contentType: 'image/png'};
blobService.createBlockBlobFromLocalFile(blockBlobContainerName, blockBlobName, imageToUpload, options, function (error) {
...

Neither one of the options choices above will set the content type for the file. In this case it's just an image, either a .png or .jpg.

Please tell me how to get this to work.

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