Skip to content
This repository has been 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
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bimsonz
Copy link

@bimsonz bimsonz commented Jun 18, 2021

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
Copy link

ghost commented Jun 18, 2021

CLA assistant check
All CLA requirements met.

@bimsonz
Copy link
Author

bimsonz commented Jun 18, 2021

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

@bimsonz
Copy link
Author

bimsonz commented Jun 22, 2021

/azp run

@azure-pipelines
Copy link

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

@bimsonz
Copy link
Author

bimsonz commented Jun 22, 2021

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

@katmsft
Copy link
Member

katmsft commented Sep 6, 2021

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?

@katmsft katmsft added the invalid label Sep 6, 2021
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