added support for content type when putting object in minio #9

Merged
brian merged 2 commits from add-support-for-content-type-in-minio into main 2025-09-18 19:40:28 +02:00
Showing only changes of commit 2e9330949c - Show all commits
@@ -113,7 +113,12 @@ class MinioAdapter(
self.logger.debug(res) self.logger.debug(res)
return res return res
def _put(self, object_name: str, data: BytesIO, content_type: str = "application/octet-stream") -> None: def _put(
self,
object_name: str,
data: BytesIO,
content_type: str = "application/octet-stream",
) -> None:
"""Put an object into the Minio bucket.""" """Put an object into the Minio bucket."""
# Check input # Check input
if not isinstance(object_name, str) or len(object_name) == 0: if not isinstance(object_name, str) or len(object_name) == 0: