Changed the file format when creating Zenodo Deposit
This commit is contained in:
parent
995d5d75ee
commit
4d249eeae4
|
@ -1906,8 +1906,10 @@ public class DataManagementPlanManager {
|
|||
LinkedMultiValueMap<String, Object> addFileMap = new LinkedMultiValueMap<>();
|
||||
|
||||
FileEnvelope file = getWordDocument(id.toString(), principal, configLoader);
|
||||
addFileMap.add("filename", file.getFilename());
|
||||
FileSystemResource fileSystemResource = new FileSystemResource(file.getFile());
|
||||
String name = file.getFilename().substring(0, file.getFilename().length() - 5);
|
||||
File pdfFile = datasetManager.convertToPDF(file, environment);
|
||||
addFileMap.add("filename", pdfFile.getName());
|
||||
FileSystemResource fileSystemResource = new FileSystemResource(pdfFile);
|
||||
addFileMap.add("file", fileSystemResource);
|
||||
HttpEntity<MultiValueMap<String, Object>> addFileMapRequest = new HttpEntity<>(addFileMap, fileHeaders);
|
||||
|
||||
|
|
Loading…
Reference in New Issue