CarnegieTechnologies / gallery_saver

Flutter plugin that saves images and videos to devices gallery
Apache License 2.0
157 stars 329 forks source link

image files without extension doesn't work #160

Open hieudz opened 3 years ago

hieudz commented 3 years ago

I have some jpg images, but for some important reasons, I have to remove the extension.

However, the library is checking the file extension to verify if file is an image or not.

Please support files without extension

JaeHeee commented 3 years ago

@hieudz I hope this helps!

I forked and fixed. If your image path is too long, check _downloadFile() in gallery_saver.dart please :)

gallery_saver:
    git:
      url: https://github.com/JaeHeee/gallery_saver.git
      ref: master

reference Thanks @TheHypnoo https://github.com/CarnegieTechnologies/gallery_saver/pull/151

TheHypnoo commented 3 years ago

@JaeHeee hello, the merge to the master of my pull request has been done. You can now use the new version of Gallery Saver.

JaeHeee commented 3 years ago

@JaeHeee hello, the merge to the master of my pull request has been done. You can now use the new version of Gallery Saver.

Thanks @TheHypnoo

In my case URL length is too long, so I add split code to _downloadFile().