eligrey / eligrey/FileSaver.js

.txt extension added on downloaded files on iphone

Open
#785 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have a problem that happen only on Iphone, the .txt extension is added at the end of the file when downloaded.
It seem to work fine on other devices (even on safari on mac)

Simple sample code that I use:
```
var blob = new Blob([content], {type: "text/plain;charset=utf-8"});
FileSaver.saveAs(blob, this.workout.name+'.zwo');
```

For example on Iphone, this will give the file a "workout.zwo.txt" name instead of a "workout.zwo"

Is there a way to fix this ?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.