fix: update select-file-enc.ts

This commit is contained in:
こけっち 2022-03-30 15:59:08 +09:00
parent a2150b1269
commit 40e3c75c13
No known key found for this signature in database
GPG Key ID: 21460619C5FC4DD1

View File

@ -96,7 +96,7 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Driv
Array.from(input.files).map(async file => { Array.from(input.files).map(async file => {
if (file.type.indexOf('video/mp4') == -1) { if (file.type.indexOf('video/mp4') === 1) {
os.toast('It is mp4 file'); os.toast('It is mp4 file');
os.upload(file, defaultStore.state.uploadFolder).then(driveFiles => { os.upload(file, defaultStore.state.uploadFolder).then(driveFiles => {
res(driveFiles); res(driveFiles);