Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong or missing file extension when calling saveAs() #20

Closed
Albert-Jan opened this issue Nov 25, 2021 · 2 comments
Closed

Wrong or missing file extension when calling saveAs() #20

Albert-Jan opened this issue Nov 25, 2021 · 2 comments

Comments

@Albert-Jan
Copy link

Whenever you open the .saveAs() and try to save a file with a custom extension, it will still save as a .json file.
await FileSaver.instance.saveAs(fileName, data, 'custom123', MimeType.JSON)

When you set the MimeType to OTHER, it saves without an extension.
await FileSaver.instance.saveAs(fileName, data, 'custom123', MimeType.OTHER)

I've only tried this code on Android.

@incrediblezayed
Copy link
Owner

Hello,
Thank You for using my package,
I'll try to reproduce your issue and will get back to you.
Thanks

incrediblezayed added a commit that referenced this issue Feb 20, 2022
 * Fixed the incomplete path in saveFile method #16
 * Fixed some crashes in some folders on saveAs method
 * Fixed application crash issue **_reply already submitted_** #14
* Fixed **_Wrong or missing file extension when calling saveAs()_** Issue #20
@incrediblezayed
Copy link
Owner

Hey, Thank You so much for pointing it out, Fixed this issue in version 0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants