Skip to content

Ref docs for Storage blobs - sample code for setting content type for upload #11727

@diberry

Description

@diberry
  • Package Name: @azure/storage-blob
  • Package Version: 12.2.1
  • Operating system: Win10-internal
  • nodejs
    • version:
  • browser
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug
The page describing the options should have an example - content-type for uploaded files is all over SO - seems like a good one to include - that someone knows how to set the most common properties. Same options could probably be added to several option objects.

For example: BlockBlobUploadStreamOptions

The samples would include code like this SO answer, specifically this line:

const blobOptions = { blobHTTPHeaders: { blobContentType: 'text/plain' } };

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.DocsStorageStorage Service (Queues, Blobs, Files)good first issueThis issue tracks work that may be a good starting point for a first-time contributor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions