Browse Source

[Fix-#5124] fix change fileName when reupload file (#5125)

pull/3/MERGE
guohaozhang 4 years ago committed by GitHub
parent
commit
6b565f0aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java

1
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java

@ -367,7 +367,6 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe
resource.setDescription(desc); resource.setDescription(desc);
resource.setUpdateTime(now); resource.setUpdateTime(now);
if (file != null) { if (file != null) {
resource.setFileName(file.getOriginalFilename());
resource.setSize(file.getSize()); resource.setSize(file.getSize());
} }

Loading…
Cancel
Save