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

#295 Add missing x-ms-blob-type header to createFile and createFileFromContents requests - #296

Open
Zach Bimson (bimsonz) wants to merge 4 commits into
Azure:masterfrom
bimsonz:295-missing-header
Open

#295 Add missing x-ms-blob-type header to createFile and createFileFromContents requests#296
Zach Bimson (bimsonz) wants to merge 4 commits into
Azure:masterfrom
bimsonz:295-missing-header

Conversation

@bimsonz

Copy link
Copy Markdown

This PR closes #295 to the best of my knowledge.

I've removed headers that make the request fail, these could be required and the configuration could be missing elsewhere but this was the success I had testing and fixing this with limited knowledge of the blob storage api.

I've also added the additional and seemingly missing x-ms-blob-type header. The value is fixed to BlockBlob as this felt most appropriate for this operation based on https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction#blobs

@ghost

Deleted user (ghost) commented Jun 18, 2021

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@bimsonz

Copy link
Copy Markdown
Author

Kan Tang (@katmsft) any chance you or one of your colleagues could have a look at this please?

@bimsonz

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 296 in repo Azure/azure-storage-php

@bimsonz

Copy link
Copy Markdown
Author

xiaonlimsft (@XiaoningLiu) any chance you or one of your colleagues could have a look at this please?

@katmsft

Copy link
Copy Markdown
Member

I think this is a usage error on file service instead of the blob service for block blob. Are you trying to use it for ADLS Gen 2?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants