Skip to content

.null added as file extension if none provided #436

@miquelbeltran

Description

@miquelbeltran

On Android, package version 0.12.0.

Saw the following behavior with the FileKit.openFileSaver(filename):

If I don't provide an extension, the method will add .null to my file, even if it already has an extension.
e.g. document.docx becomes document.docx.null if I call with: FileKit.openFileSaver("document.docx")

The workaround I am using now is extracting and removing the extension from my filename and call like this: FileKit.openFileSaver("document", "docx"), that way the file is saved as document.docx.

My expectation would be that the method FileKit.openFileSaver(filename) respects the original file name and doesn't add .null if no extension is provided, as it is an optional parameter.

It could be that this issue happens with .docx extensions but not other extensions, I didn't check that. But I saw this behavior with this file extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions