semi-design
semi-design copied to clipboard
[Upload] <allowlist里有jpg没有jpeg的时候 选择文件例jpeg不会置灰 但是选了之后又传不上来 还是被过滤了>
Is there an existing issue for this?
- [X] I have searched the existing issues
Which Component
Upload
Semi Version
latest
Current Behavior
allowlist里有jpg没有jpeg的时候 选择文件例jpeg不会置灰 但是选了之后又传不上来 还是被过滤了
import React from 'react';
import { Upload, Button } from '@douyinfe/semi-ui';
import { IconUpload } from '@douyinfe/semi-icons';
() => {
let action = 'https://run.mocky.io/v3/d6ac5c9e-4d39-4309-a747-7ed3b5694859';
let imageOnly = 'image/*';
let videoOnly = 'video/*';
let fileLimit = '.jpg,.png';
return (
<>
<Upload action={action} accept={fileLimit}>
<Button icon={<IconUpload />} theme="light">
上传
</Button>
</Upload>
</>
);
};
Expected Behavior
No response
Steps To Reproduce
No response
ReproducibleCode
No response
Environment
- OS:
- browser:
Anything else?
No response