Skip to content

Commit 71c85ea

Browse files
SK-2262: fix file name
1 parent 4bd1f24 commit 71c85ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/skyflow/vault/controller/DetectController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public DeidentifyFileResponse deidentifyFile(DeidentifyFileRequest request) thro
134134
if (base64File != null) {
135135
byte[] decodedBytes = Base64.getDecoder().decode(base64File);
136136
String outputDir = request.getOutputDirectory();
137-
String outputFileName = Constants.PROCESSED_FILE_NAME_PREFIX + fileName;
137+
String outputFileName = Constants.PROCESSED_FILE_NAME_PREFIX + fileName.substring(0, fileName.lastIndexOf('.')) + "."+response.getExtension();
138138
File outputFile;
139139
if (outputDir != null && !outputDir.isEmpty()) {
140140
outputFile = new File(outputDir, outputFileName);

0 commit comments

Comments
 (0)