add support for video previews (#197)
* add support for video previews * fix two cases where video previews did not show
This commit is contained in:
@@ -46,7 +46,7 @@ const handleDropFile = (event: DragEvent) => {
|
||||
const handleClick = (event: MouseEvent) => {
|
||||
const input = document.createElement('input')
|
||||
input.type = 'file'
|
||||
input.accept = 'image/*'
|
||||
input.accept = 'image/*,video/*'
|
||||
input.onchange = () => {
|
||||
const files = input.files
|
||||
if (files) {
|
||||
|
||||
Reference in New Issue
Block a user