Skip to content

Commit bafac8f

Browse files
Merge pull request #348 from cap-java/LargeFileRc1
Large file upload fix
2 parents 2e0f587 + 4f10419 commit bafac8f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

sdm/src/main/java/com/sap/cds/sdm/service/DocumentUploadService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ private void appendContentStream(
128128

129129
try {
130130
this.executeHttpPost(httpClient, request, cmisDocument, finalResponse);
131+
cmisDocument.setMimeType(finalResponse.get("mimeType"));
131132

132133
} catch (Exception e) {
133134
logger.error("Error in appending content: {}", e.getMessage());

sdm/src/main/java/com/sap/cds/sdm/service/handler/SDMAttachmentsServiceHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ private void handleCreateDocumentResult(
376376
throw new ServiceException(errorMessage2);
377377
default:
378378
cmisDocument.setObjectId(createResult.get("objectId").toString());
379-
cmisDocument.setMimeType(createResult.get("mimeType").toString());
380379
dbQuery.addAttachmentToDraft(
381380
getAttachmentDraftEntity(eventContext), persistenceService, cmisDocument);
382381
finalizeContext(eventContext, cmisDocument);

0 commit comments

Comments
 (0)