- type = document.getElementById('file_select').files[0].type;
- if (type.startsWith('image/') ||
- type.startsWith('audio') ||
- type.startsWith('text/plain') ||
- type.startsWith('video/'))
- {
+ type = document.getElementById('file_select').files[0].type;
+ if ((type.startsWith('image/')
+ || type.startsWith('audio')
+ || type.startsWith('text/plain')
+ || type.startsWith('video/'))
+ && !type.includes('image/svg+xml'))
+ {