|
|
@@ -151,11 +151,12 @@ public class ObjectMultipartUploadService {
|
|
|
String suffix = StringUtil.getSuffix(filename);
|
|
|
ObjectProp objectProp = objectNameService.getObjectProp(objectChannel, suffix);
|
|
|
File savedFile = new File(absolutePath);
|
|
|
- putObjectService.putObject(objectProp, contentId, savedFile, filename, sha256sum);
|
|
|
+ ObjectResult objectResult = putObjectService.putObject(objectProp, contentId, savedFile, filename, sha256sum);
|
|
|
|
|
|
+ String objectId = objectResult.getObjectId();
|
|
|
filePartRepository.updateSetUploaded(sha256sum);
|
|
|
String host = ServletUtil.getHeader("host");
|
|
|
String url = String.format("//%s/%s", host, objectProp.getObjectName());
|
|
|
- return new UploadFileRet(sha256sum, url);
|
|
|
+ return new UploadFileRet(objectId, url);
|
|
|
}
|
|
|
}
|