Preview local file before send

This commit is contained in:
Cao Mingjun
2023-11-25 03:39:26 +00:00
committed by GitHub
parent a3312f69fb
commit 94781c89f3
2 changed files with 14 additions and 12 deletions

View File

@@ -798,7 +798,7 @@ const AttachmentBox = (props) => {
borderRadius: "4px",
}}
>
<AttachmentIcon type={file.type} />
<AttachmentIcon type={file.type} href={URL.createObjectURL(file)} />
<Box sx={{ marginLeft: 1, textAlign: "left" }}>
<ExpandingTextField
minWidth={140}