Skip to content

SaveFile on Android ignores customized file name #12

@Gnietschow

Description

@Gnietschow

Awesome package! I'm currently exploring its capabilities for my project and stumbled upon a problem. I'm calling

FileToSave file = new FileToSave(srcPath, newFilename); NativeFileSO.shared.SaveFile(file);

to share a file under a new name on Android. This will call finally

public void SaveFile(FileToSave file) { JavaNativeSO.CallStatic("SaveFile", Activity, file.SrcPath, file.MimeType); }

in the NativeFileSOAndroid.cs, where it seems that the set newFilename is not passed to the share intent in the native code. Is this a bug or is it not possible to change the filename to share as a platform limitation?

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