mirror of https://github.com/halo-dev/halo
Add todo code for issue(七牛云上传附件失败 #110)
parent
a0779ae11e
commit
e4a47147b3
|
@ -258,8 +258,9 @@ public class AttachmentServiceImpl extends AbstractCrudService<Attachment, Long>
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> attachQiNiuUpload(MultipartFile file, HttpServletRequest request) {
|
public Map<String, String> attachQiNiuUpload(MultipartFile file, HttpServletRequest request) {
|
||||||
final Map<String, String> resultMap = new HashMap<>(6);
|
final Map<String, String> resultMap = new HashMap<>(7);
|
||||||
try {
|
try {
|
||||||
|
// TODO Dynamically set this zone of qiniuyun (七牛云上传附件失败 #110)
|
||||||
final Configuration cfg = new Configuration(Zone.zone0());
|
final Configuration cfg = new Configuration(Zone.zone0());
|
||||||
final String key = Md5Util.getMD5Checksum(file);
|
final String key = Md5Util.getMD5Checksum(file);
|
||||||
final String accessKey = OPTIONS.get("qiniu_access_key");
|
final String accessKey = OPTIONS.get("qiniu_access_key");
|
||||||
|
|
Loading…
Reference in New Issue