Skip to content

Commit eecdc29

Browse files
committed
Filters image and video type
1 parent 3f7d10a commit eecdc29

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: src/components/side-menu/image-upload-button/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default class ImageUploadButton extends React.Component {
2424
<input
2525
style={{ display: "none" }}
2626
type="file"
27+
accept="image/*"
2728
ref={ref => (this.uploadInput = ref)}
2829
onChange={e => this.handleFileSelection(e)}
2930
/>

Diff for: src/components/side-menu/video-upload-button/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default class ImageUploadButton extends React.Component {
2424
<input
2525
style={{ display: "none" }}
2626
type="file"
27+
accept="video/mp4,video/x-m4v,video/*"
2728
ref={ref => (this.uploadInput = ref)}
2829
onChange={e => this.handleFileSelection(e)}
2930
/>

0 commit comments

Comments
 (0)