Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint CSOM
Developer environment
Windows
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
No response
Describe the bug / error
A file created in SPO library using CSOM with FileCreationInformation object is using url-encoded format for character that are not letters, in the file name.
For example "(" is getting replaced with "%28"
The issue was observed only on Mar/11 and Mar/12 2025 ... before and after these dates its working fine , non-letter characters in filename are not getting url-encoded
Steps to reproduce
// Define new file creation information
FileCreationInformation newFile = new FileCreationInformation
{
Url = "filename(1).txt", // Only the name of the file
Content = System.Text.Encoding.UTF8.GetBytes("This is the content of the file."), // File content as byte array
Overwrite = true // Set overwrite to true or false as needed
};
Expected behavior
The filename for the newly created file in SPO library should not url-encode non-letter characters