Skip to content

Commit

Permalink
116430: Fix file name not being retrieved correctly for process files
Browse files Browse the repository at this point in the history
  • Loading branch information
nona-luypaert committed Jul 22, 2024
1 parent 4e68164 commit c00517a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void processFiles(Context context, RestDSpaceRunnableHandler restDSpaceR
List<MultipartFile> files, DSpaceRunnable dspaceRunnable)
throws IOException, SQLException, AuthorizeException {
for (MultipartFile file : files) {
String type = (String) dspaceRunnable.fileParameterToBitstreamType(file.getName())
String type = (String) dspaceRunnable.fileParameterToBitstreamType(file.getOriginalFilename())
.orElse("inputfile");
restDSpaceRunnableHandler.writeFilestream(context, file.getOriginalFilename(), file.getInputStream(), type);
}
Expand Down

0 comments on commit c00517a

Please sign in to comment.