mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
feat: preview image (#47930)
* feat: preview image * feat: test * feat: download false * feat: review
This commit is contained in:
parent
ec4591b64a
commit
d1da5f7f8f
@ -92,6 +92,7 @@ async function uploadFile(client, filePath, refValue) {
|
||||
'x-oss-object-acl': 'public-read',
|
||||
// https://help.aliyun.com/zh/oss/developer-reference/prevent-objects-from-being-overwritten-by-objects-that-have-the-same-names-3
|
||||
'x-oss-forbid-overwrite': 'false',
|
||||
'Content-Disposition': 'inline',
|
||||
};
|
||||
// Set content-type to allow individual preview of images
|
||||
if (path.extname(filePath) === '.png') {
|
||||
|
Loading…
Reference in New Issue
Block a user