mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-12-12 12:19:27 +08:00
修复七牛云上传后无法获取OriginalName为空的问题
This commit is contained in:
parent
e22dc339f0
commit
81a6b4be1f
@ -158,6 +158,8 @@ public class QiniuTemplate {
|
|||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public BladeFile put(String bucketName, InputStream stream, String key, boolean cover) {
|
public BladeFile put(String bucketName, InputStream stream, String key, boolean cover) {
|
||||||
|
BladeFile file = new BladeFile();
|
||||||
|
file.setOriginalName(key);
|
||||||
makeBucket(bucketName);
|
makeBucket(bucketName);
|
||||||
key = getFileName(key);
|
key = getFileName(key);
|
||||||
// 覆盖上传
|
// 覆盖上传
|
||||||
@ -172,7 +174,6 @@ public class QiniuTemplate {
|
|||||||
retry++;
|
retry++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BladeFile file = new BladeFile();
|
|
||||||
file.setName(key);
|
file.setName(key);
|
||||||
file.setLink(fileLink(bucketName, key));
|
file.setLink(fileLink(bucketName, key));
|
||||||
return file;
|
return file;
|
||||||
|
Loading…
Reference in New Issue
Block a user