Azure / Azure/MachineLearningNotebooks
azureml.data.azure_storage_datastore upload_files() does not set mime type when uploading to storage container static website.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 4.4k
- Fork
- 2.6k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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)`
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.