Skip to content

Releases: incrediblezayed/file_saver

v0.2.14

18 Aug 19:18
Compare
Choose a tag to compare
  • Merged PR #117 to update conditional imports for web (wasm)
  • Merged PR #121 added dynamic access to enum for whoever need it,
    MimeType.get('pdf');
  • Merged PR #123 for upgrade to web 1.0.0

v0.2.13

26 May 20:36
Compare
Choose a tag to compare
  • Merge PR #115 for wasm build
  • Added 3 MP4 mime types for better compatibility with the MP4 files

v0.2.12

11 Mar 22:57
Compare
Choose a tag to compare
  • Minor network related bug fixes, fixing issue #105
  • & Issue #106

v0.2.11

21 Feb 15:56
Compare
Choose a tag to compare
  • Merged PR #87 for backward compatibility with the older versions of java

v0.2.10

18 Feb 08:07
Compare
Choose a tag to compare
  • Moved from http to dio for better control over the headers and other options
  • LinkDetails has more options such as method & body
    here is the example of how to use the LinkDetails
     LinkDetails(
         link: "www.example.com/file.extention",
         headers: /// Your headers here,
         method: /// Your method here (GET, POST, PUT, DELETE, PATCH),
         body: /// Request body here
     ),
  • Both saveFile and saveAs methods now have the dioClient & transformDioResponse as a parameter, so you can pass your own dio client to the method and it will use that client to download the file & you can also pass the transformDioResponse to transform the response as per your requirement.\
    await FileSaver.instance.saveFile(
                      name: "FileName",
                      link: "www.example.com/file.extention", 
                      filePath: "pathOfFile",
                      file: File(),
                      bytes: bytes,
                      ext: "extention",
                      mimeType: MimeType.pdf,
                      dioClient: Dio(),
                      transformDioResponse: (response) {
                        return response.data;
                      });
  • Fixed (GitHub issue #95)
  • Fixed (GitHub issue #92)

v0.2.9

18 Oct 14:24
Compare
Choose a tag to compare
  • Merged PR #75 resolving issue [#75][https://github.com//issues/75]
  • Merged PR #79 resolving issue #78
  • Merged PR #74 resolving issue #73
  • Merged PR #77 for better README.md

v0.2.8

07 Aug 11:33
Compare
Choose a tag to compare
  • Moving saveAs() support for macOS to production.

v0.2.7

14 Jul 17:09
Compare
Choose a tag to compare
  • Updated the http package to the latest version (issue #63)

v0.2.6

07 Jul 10:31
Compare
Choose a tag to compare
  • Merged ([PR70])(#70), resolving the issue ([#42])(#42)

v0.2.5

26 Jun 11:52
Compare
Choose a tag to compare
  • Added apng mime type
  • Added custom mimetype
    So basically if you have a custom mimetype and it does not exists in the given enum, you can add your own mimeType using the field \
String? customMimeType,

and you will have to set the mimetype to custom and call the method like

await FileSaver.instance.saveFile(
                    name: "FileName",
                    link: "www.example.com/file.extention", 
                    filePath: "pathOfFile",
                    file: File(),
                    bytes: bytes,
                    ext: "extention",
                    customMimeType: 'YourCustomType',
                    mimeType: MimeType.custom);
  • Fixed repeated extension when using saveAs with MimeType.other on iOS (GitHub issue #65)