Commit d352aad2 authored by alex yao's avatar alex yao

fix: File has been moved - cannot be read again

parent 09537e57
...@@ -217,7 +217,6 @@ public class AgentApplicationApiServiceImpl implements AgentApplicationApiServic ...@@ -217,7 +217,6 @@ public class AgentApplicationApiServiceImpl implements AgentApplicationApiServic
file.transferTo(tempFile); file.transferTo(tempFile);
BufferedInputStream inputStream = FileUtil.getInputStream(tempFile); BufferedInputStream inputStream = FileUtil.getInputStream(tempFile);
String uploadUrl = bosConfigService.upload(inputStream, type, file.getContentType()); String uploadUrl = bosConfigService.upload(inputStream, type, file.getContentType());
file.getInputStream().close();
tempFile.delete(); tempFile.delete();
String fileId = UUID.randomUUID().toString(); String fileId = UUID.randomUUID().toString();
BizAgentApplicationApiFilesEntity bizAgentApplicationApiFilesEntity = new BizAgentApplicationApiFilesEntity(); BizAgentApplicationApiFilesEntity bizAgentApplicationApiFilesEntity = new BizAgentApplicationApiFilesEntity();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment