mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-25 21:26:50 +08:00
fix: mime type for jpg/jpeg files
This commit is contained in:
@@ -41,7 +41,7 @@ object ClipboardUtils {
|
||||
|
||||
private fun mimeTypeToExtName(mimeType: String) = when (mimeType) {
|
||||
"image/png" -> "png"
|
||||
"image/jpeg" -> "png"
|
||||
"image/jpeg" -> "jpeg"
|
||||
"image/gif" -> "gif"
|
||||
else -> throw IllegalArgumentException("$mimeType is not supported")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user