mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 05:17:18 +00:00

Using `mime-types` in that place made it impossible to use other other file extensions like `.sdcard` and have them treated as `application/octet-stream` when drag and dropping images into Etcher. This moves the fallback logic in `lib/image-stream` to `.getFromFilePath()`, to still facilitate proper MIME type detection, while allowing it to fall back to the octet-stream handler, if there's no available handler for a specific type. Change-Type: patch Changelog-Entry: Fix not treating unknown images as octet-stream