Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.
This repository was archived by the owner on May 8, 2024. It is now read-only.

Missing header 'x-ms-blob-type' when calling createFile and createFileFromContents #295

@bimsonz

Description

@bimsonz

Which service(blob, file, queue, table) does this issue concern?

File

Which version of the SDK was used?

1.2.4

What's the PHP/OS version?

PHP 7.4 Mac OSX BigSur

What problem was encountered?

Error, missing required header x-ms-blob-type

Steps to reproduce the issue?

Using a FileEndpoint and SASToken connection string;

  • Insatiate FileRestProxy()
  • Make call to createFile or createFileFromContents

Have you found a mitigation/solution?

Yes,

  • For createFile

Add

        $this->addOptionalHeader(
          $headers,
          Resources::X_MS_BLOB_TYPE,
          'BlockBlob'
        );

to createFileAsync

  • For createFileWithContents the header is needed but also a header should be removed

Is there a failing request ID related to this problem returned by server? What is it?

1216acd1-101e-0018-2f52-642e29000000

What is the storage account name and time frame of your last reproduce? (UTC YYYY/MM/DD hh:mm:ss)

2021-06-18T14:59:36.7330482

(If you think some of the information should not be shared publicly, you can e-mail the main Microsoft contributors of the repository instead.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions