pedro-cf opened a new issue, #39722:
URL: https://github.com/apache/airflow/issues/39722

   ### Apache Airflow version
   
   2.9.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When using `ObjectStoragePath` to send a file to an Azure Blob Storage 
Container the content type is being set as `application/octet-stream`
   
   Example code:
   ```python
   ObjectStoragePath("file:///opt/airflow/input.tif").copy(dst=base / 
"copy.tif")
   ```
   
   Content types displayed on Azure Storage Explorer:
   
![image](https://github.com/apache/airflow/assets/4175430/62565dcd-b1dc-4308-891c-a3152c11db37)
   
   (Note: `input.tif` is manually uploaded using Azure Storage Explorer)
   
   **Not sure if it's a bug, a feature request or if there is already a 
solution.**
   
   ### What you think should happen instead?
   
   After uploading a file using `ObjectStoragePath` the content-type should be 
appropriate.
   
   ### How to reproduce
   
   Example code:
   ```python
   ObjectStoragePath("file:///opt/airflow/input.tif").copy(dst=base / 
"copy.tif")
   ```
   
   ### Operating System
   
   Ubuntu 22.04 (WSL2)
   
   ### Versions of Apache Airflow Providers
   
   - apache-airflow-providers-microsoft-azure 10.1.0
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to