s3_upload_pdf

This commit is contained in:
2026-06-07 21:45:18 -07:00
parent 93082f13b0
commit 9258402427

View File

@@ -70,6 +70,11 @@ class DataStore:
raise TypeError(f"Unsupported data type for CSV upload: {type(data)}")
await self.__s3_upload(key, body, "text/csv")
async def s3_upload_pdf(
self, key: str, data: bytes, metadata: dict[str, object] = {}
):
await self.__s3_upload(key, data, "application/pdf", metadata=metadata)
async def __s3_upload(
self, key: str, body: bytes, content_type: str, metadata: dict[str, object] = {}
):