Description
On dotnet 10, on an Android app, while picking a file which then gets modified by resizing or recompressing, the code is adding a "_processed" suffix to the file name, so each picked file becomes "originalfilename_processed.extension"
|
var processedFileName = System.IO.Path.GetFileNameWithoutExtension(imagePath) + "_processed" + outputExtension; |
this is unexpected and feels like the byproduct of what looks like having copilot writing most of this code.
in other platforms I do not think there is any such modification to filenames.
would be good if this was removed as it introduces consistency issues and offers no obvious advantages.
In my case I am passing CompressionQuality = 89 so this always makes my images get the suffix on android which is really annoying.
Version with bug
10.0.20
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Android
Description
On dotnet 10, on an Android app, while picking a file which then gets modified by resizing or recompressing, the code is adding a "_processed" suffix to the file name, so each picked file becomes "originalfilename_processed.extension"
maui/src/Essentials/src/MediaPicker/MediaPicker.android.cs
Line 373 in a1abaf8
this is unexpected and feels like the byproduct of what looks like having copilot writing most of this code.
in other platforms I do not think there is any such modification to filenames.
would be good if this was removed as it introduces consistency issues and offers no obvious advantages.
In my case I am passing
CompressionQuality = 89so this always makes my images get the suffix on android which is really annoying.Version with bug
10.0.20
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Android