Azure / Azure/MachineLearningNotebooks
azureml.data.azure_storage_datastore upload_files() does not set mime type when uploading to storage container static website.
- 主要语言
- Jupyter Notebook
- 星标
- 4.4k
- 派生
- 2.6k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Uploading files to the designated $web container using the python sdk upload_files() command to a blob storage static website does not correctly set the mime type to "text/html" for files with .html suffixes. See https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.data.azure_storage_datastore.azureblobdatastore?view=azure-ml-py#upload-src-dir--target-path-none--overwrite-false--show-progress-true-
This should be done automatically on upload as mentioned in https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-cli
The work-around is to manually set content type in the Storage Explorer, to programmatically use the Python SDK `set_http_headers(content_settings=None, **kwargs)`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。