Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传后获取md5值与原文件本身的md5不一致 #298

Open
3gbug opened this issue Sep 26, 2024 · 3 comments
Open

上传后获取md5值与原文件本身的md5不一致 #298

3gbug opened this issue Sep 26, 2024 · 3 comments

Comments

@3gbug
Copy link

3gbug commented Sep 26, 2024

var fileInfo = fileStorageService.of(httpRequest) .setHashCalculatorMd5() .upload(); log.info(fileInfo.getHashInfo().getMd5());

同一个文件上传到oss,每次获取到的md5都不一样,oss文件md5跟原始上传的文件md5是一致的。

@1171736840
Copy link
Collaborator

你用的哪个版本,更新到最新版试一下

@3gbug
Copy link
Author

3gbug commented Sep 27, 2024

你用的哪个版本,更新到最新版试一下

implementation 'org.dromara.x-file-storage:x-file-storage-spring:2.2.1'
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.772'

已经是最新版本,还是一样每次计算出来的md5不一样。

@1171736840
Copy link
Collaborator

那你再提供详细的版本号、代码、日志、报错信息等,越详细越好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants