added steps to correct content type in minio
This commit is contained in:
@@ -23,6 +23,7 @@ class AnnotationRepository(MinioAdapter, AnnotationRepositoryInterface):
|
||||
|
||||
encoding: str = "utf-8"
|
||||
data_format: str = "json"
|
||||
content_type: str = "application/json"
|
||||
folder_name: str = "annotations"
|
||||
|
||||
@classmethod
|
||||
@@ -81,7 +82,7 @@ class AnnotationRepository(MinioAdapter, AnnotationRepositoryInterface):
|
||||
buffer = BytesIO(data_bytes)
|
||||
# Put object
|
||||
object_name = self._object_name(job_id)
|
||||
self._put(object_name, buffer)
|
||||
self._put(object_name, buffer, self.content_type)
|
||||
|
||||
def delete(self, job_id: UUID) -> None:
|
||||
"""Delete an Annotation by its job ID."""
|
||||
|
||||
Reference in New Issue
Block a user