Skip to content

Commit 3565455

Browse files
committed
file-mode-api: fix file_url to be full path
1 parent 05bc2cb commit 3565455

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/sources/declarative/retrievers/file_uploader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def upload(self, record: Record) -> None:
5757
file_size_bytes = full_path.stat().st_size
5858

5959
logger.info("File uploaded successfully")
60-
logger.info(f"File path: {full_path} ")
60+
logger.info(f"File url: {str(full_path)} ")
6161
logger.info(f"File size: {file_size_bytes / 1024} KB")
62-
logger.info(f"File download target: {download_target}")
62+
logger.info(f"File relative path: {str(file_relative_path)}")
6363

6464
record.file_reference = AirbyteRecordMessageFileReference(
65-
file_url=download_target,
65+
file_url=str(full_path),
6666
file_relative_path=str(file_relative_path),
6767
file_size_bytes=file_size_bytes,
6868
)

0 commit comments

Comments
 (0)