Fixed minor issue with Zenodo file names
This commit is contained in:
parent
e067b3d490
commit
fa86258197
|
@ -1908,7 +1908,7 @@ public class DataManagementPlanManager {
|
||||||
FileEnvelope file = getWordDocument(id.toString(), principal, configLoader);
|
FileEnvelope file = getWordDocument(id.toString(), principal, configLoader);
|
||||||
String name = file.getFilename().substring(0, file.getFilename().length() - 5);
|
String name = file.getFilename().substring(0, file.getFilename().length() - 5);
|
||||||
File pdfFile = datasetManager.convertToPDF(file, environment);
|
File pdfFile = datasetManager.convertToPDF(file, environment);
|
||||||
addFileMap.add("filename", pdfFile.getName());
|
addFileMap.add("filename", name + ".pdf");
|
||||||
FileSystemResource fileSystemResource = new FileSystemResource(pdfFile);
|
FileSystemResource fileSystemResource = new FileSystemResource(pdfFile);
|
||||||
addFileMap.add("file", fileSystemResource);
|
addFileMap.add("file", fileSystemResource);
|
||||||
HttpEntity<MultiValueMap<String, Object>> addFileMapRequest = new HttpEntity<>(addFileMap, fileHeaders);
|
HttpEntity<MultiValueMap<String, Object>> addFileMapRequest = new HttpEntity<>(addFileMap, fileHeaders);
|
||||||
|
|
Loading…
Reference in New Issue