feature (add): form file

This commit is contained in:
Mickael KERJEAN
2019-01-24 22:04:56 +11:00
parent d7339ca886
commit e035cc69be
7 changed files with 97 additions and 40 deletions

View File

@ -22,11 +22,13 @@ export function opener(file){
return 'editor';
}else if(['audio/wav', 'audio/mp3', 'audio/flac', 'audio/ogg'].indexOf(mime) !== -1){
return 'audio';
}else if(mime === "application/x-form"){
return 'form';
}else if(mime.split('/')[0] === 'video' || mime === "application/ogg"){
return 'video';
}else if(mime.split('/')[0] === "application")
}else if(mime.split('/')[0] === "application"){
return 'download';
else{
}else{
return 'editor';
}
}