Fixing stl file mimetype.

This commit is contained in:
Roland 2023-02-21 15:49:11 -07:00
parent 54709c268c
commit 977f42529f
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 21 additions and 17 deletions

View file

@ -639,6 +639,8 @@ export function FileIcon({file, disabled = true, size = 'huge', ...props}) {
props['name'] = 'book';
} else if (mimetype.startsWith('text/vtt') || mimetype.startsWith('text/srt')) {
props['name'] = 'closed captioning';
} else if (mimetype.startsWith('application/x-openscad') || mimetype.startsWith('model/stl')) {
props['name'] = 'cube';
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi')) {
props['name'] = 'microsoft';
} else if (mimetype.startsWith('application/octet-stream')) {