nativefileso icon indicating copy to clipboard operation
nativefileso copied to clipboard

SaveFile on Android ignores customized file name

Open Gnietschow opened this issue 7 months ago • 1 comments

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?

Gnietschow avatar Sep 22 '25 20:09 Gnietschow