ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 115 forks source link

Crashes on downloading images from uri's that do not provide the right headers. #54

Open ko2ic opened 4 years ago

ko2ic commented 4 years ago

@rogiervandenberg say:

It structurally crashes (also 0.19.0) on downloading images from uri's that do not provide the right headers. So, for instance I have an image file that returns application/x-msdownload as header 😔, while being an image. Even though my browser can show it correctly, it crashes the image_downloader plugin.

lancasterjones commented 4 years ago

I am also having this issue. I have removed all functionality except for the basic download functionality (no Custom Dir, findPath, open...). If using 'inExternalFilesDir()' the issue goes away but this is not functional for many android devices.

Other than this issue, I really like the plugin.

I hope you can come up with a solution to use this plugin in production.