We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const reader = new FileReader(); reader.onloadend = () => { console.log(blob.type) // 'text/plain' plugins.socialsharing.share(null, name, reader.result, null); }; reader.readAsDataURL(blob);
When I trying to share text file at andoid, it adds .plain extension so new file name is file.txt.plain
The text was updated successfully, but these errors were encountered:
have equal issue with xls files, its add .csv.vnd.ms-excel
Sorry, something went wrong.
fixed, library parsing filename from base64 string in different order rather than reader output
const reader = new FileReader(); const { type } = blob; reader.onloadend = () => { const base64Data = reader.result.substr(reader.result.indexOf('base64,') + 7); plugins.socialsharing.shareWithOptions({ files: [`df:${name};data:${type};base64,${base64Data}`], }); }; reader.readAsDataURL(blob);
thanks to issue #918
No branches or pull requests
When I trying to share text file at andoid, it adds .plain extension so new file name is file.txt.plain
The text was updated successfully, but these errors were encountered: