Skip to content

Commit 0aacc15

Browse files
Fix upload file xls. Fix #1138
1 parent c31c9df commit 0aacc15

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

email_composer/src/components/attachment.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
}
3232

3333
.file-icon{
34+
color: #fff;
35+
display: flex;
3436
float: left;
37+
font-size: 30px;
3538
height: 30px;
3639
margin: 5px 8px 5px 7px;
3740
width: 30px;
38-
font-size: 30px;
39-
color: #fff;
4041

4142
.icon-container-image {
4243
background-color: #99ccff;

email_composer/src/containers/Composer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ class ComposerWrapper extends Component {
382382
});
383383
const files = this.getFilesFromEvent(e);
384384
const filesFiltered = [...files].filter(item => {
385+
if (!item.type) {
386+
const texts = item.name.split('.');
387+
const ext = texts[texts.length - 1];
388+
if (ext === 'xls') return true;
389+
}
385390
return !!item.type;
386391
});
387392

0 commit comments

Comments
 (0)