Use the right field to get the filename
@@ -243,8 +243,8 @@ public class FunctionsImpl {
Utils.uploadFileToBookkeeper(packageLocationMetaDataBuilder.getPackagePath(), file, worker().getDlogNamespace());
} else {
packageLocationMetaDataBuilder.setPackagePath(createPackagePath(tenant, namespace, componentName,
- fileDetail.getName()));
- packageLocationMetaDataBuilder.setOriginalFileName(fileDetail.getName());
+ fileDetail.getFileName()));
+ packageLocationMetaDataBuilder.setOriginalFileName(fileDetail.getFileName());
log.info("Uploading {} package to {}", componentType, packageLocationMetaDataBuilder.getPackagePath());
Utils.uploadFileToBookkeeper(packageLocationMetaDataBuilder.getPackagePath(), uploadedInputStreamAsFile, worker().getDlogNamespace());
}
