Browse Source

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

guohaozhang 4 years ago committed by GitHub
parent
commit
4ad3d43dbc
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/ResourcesService.java

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

@ -428,7 +428,6 @@ public class ResourcesService extends BaseService {
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