Adding audio preview for audio files.

This commit is contained in:
Roland 2023-02-22 11:48:25 -07:00
parent 977f42529f
commit 272eef400c
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 54 additions and 11 deletions

View file

@ -643,6 +643,8 @@ export function FileIcon({file, disabled = true, size = 'huge', ...props}) {
props['name'] = 'cube';
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi')) {
props['name'] = 'microsoft';
} else if (mimetype.startsWith('audio/')) {
props['name'] = 'file audio';
} else if (mimetype.startsWith('application/octet-stream')) {
if (lowerPath.endsWith('.stl')) {
props['name'] = 'cube';