Skip to content

Commit

Permalink
fix(idp-extraction-connector): remove double download in idp connector
Browse files Browse the repository at this point in the history
  • Loading branch information
reiballa committed Feb 3, 2025
1 parent 439bfaf commit 77243be
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ private static String uploadNewFileFromDocument(
final Document document, final String bucketName, final S3AsyncClient s3AsyncClient)
throws IOException {
String documentKey = UUID.randomUUID().toString();

LOGGER.debug("Starting document upload to AWS S3 with key {}", documentKey);

long contentLength = document.metadata().getSize();

try (InputStream inputStream = document.asInputStream()) {
PutObjectRequest putObjectRequest =
PutObjectRequest.builder().bucket(bucketName).key(documentKey).build();
Expand Down

0 comments on commit 77243be

Please sign in to comment.