incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 92 forks source link

File extension being inconsistent #110

Open GameTec-live opened 3 months ago

GameTec-live commented 3 months ago

Somehow in a recent? ish update some inconsistency with the file extension was introduced. When calling the saveAs function (example below), on windows it now doesnt recognize the .bin extension and assumes its a IN file, on android the .bin extension gets succesfully recognized and added and on Linux no extension gets added but it still works (so thatd be fine ig). The problem im having with this is, that on Android (and i belive iOS too), the ext: 'bin' works fine as it always has, but on windows it breaks. I can now change it to ext: '.bin' to fix this issue on windows, but now on mobile i get 2 .. Please fix this issue as soon as possible as my app is relying on this package, thanks!

FileSaver.instance.saveAs(
          name: tag.name,
          bytes: Uint8List.fromList(tagDump),
          ext: 'bin',
          mimeType: MimeType.other);
GameTec-live commented 3 months ago

it seems to happen with 0.2.9 and anything upwards?

incrediblezayed commented 1 month ago

Hey, sincerest apologies for such a late response, I will check it up & fix it for sure, thanks

GameTec-live commented 1 month ago

Oh hey, thanks for looking into this issue!