Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
1fb40c56
Commit
1fb40c56
authored
Dec 30, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: File has been moved - cannot be read again
parent
9ed0c9c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
AgentApplicationApiServiceImpl.java
...expose/aggregate/impl/AgentApplicationApiServiceImpl.java
+2
-1
No files found.
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationApiServiceImpl.java
View file @
1fb40c56
...
@@ -213,7 +213,8 @@ public class AgentApplicationApiServiceImpl implements AgentApplicationApiServic
...
@@ -213,7 +213,8 @@ public class AgentApplicationApiServiceImpl implements AgentApplicationApiServic
File
tempFile
=
File
.
createTempFile
(
UUIDTool
.
getUUID
(),
"."
+
type
);
File
tempFile
=
File
.
createTempFile
(
UUIDTool
.
getUUID
(),
"."
+
type
);
file
.
transferTo
(
tempFile
);
file
.
transferTo
(
tempFile
);
String
uploadUrl
=
bosConfigService
.
upload
(
file
.
getInputStream
(),
type
,
file
.
getContentType
());
String
uploadUrl
=
bosConfigService
.
upload
(
file
.
getInputStream
(),
type
,
file
.
getContentType
());
tempFile
.
delete
();
file
.
getInputStream
().
close
();
String
fileId
=
UUID
.
randomUUID
().
toString
();
String
fileId
=
UUID
.
randomUUID
().
toString
();
BizAgentApplicationApiFilesEntity
bizAgentApplicationApiFilesEntity
=
new
BizAgentApplicationApiFilesEntity
();
BizAgentApplicationApiFilesEntity
bizAgentApplicationApiFilesEntity
=
new
BizAgentApplicationApiFilesEntity
();
bizAgentApplicationApiFilesEntity
.
setAgentId
(
agentId
);
bizAgentApplicationApiFilesEntity
.
setAgentId
(
agentId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment