How can I suppress the FileManager Rename Confirmation dialog?
Hi Syncfusion,
I am using the Blazor File Manager with data supplied from a SQL database. Therefore, the media names supplied are not filenames and therefore do not have to have file extensions.
When I perform an item "rename" the File Manager component automatically shows the "Rename Confirmation" dialog box:
This makes no sense under the circumstances.
Please could you tell me how to suppress this dialog.
Many thanks and best regards,
Steve
Hi Stephen Haines,
To suppress the Rename Confirmation dialog in the Blazor File Manager when renaming items from an SQL database without file extensions, you can use the ShowFileExtension property and handle the dialog behavior.
Set the ShowFileExtension property to false to hide file extensions in the File Manager. This setting hides the extension for files and prevents users from changing extensions when renaming files.
|
<SfFileManager @ref="filemanager" id="filemanager" TValue="FileManagerDirectoryContent" ShowFileExtension="false"> <FileManagerAjaxSettings Url="/api/home/fileoperations" UploadUrl="/api/home/upload" DownloadUrl="/api/home/download" GetImageUrl="/api/home/getimage"> </FileManagerAjaxSettings> </SfFileManager> |
For your reference we attached a sample and SQL provider.
Sample: Attached as a zip file.
Check out the sample and let us know if you need any further assistance.
Regards,
Saravanan J.
Attachment: BlazorAppFileManager_5cc16bc.zip
Dear Saravanan,
Thank you so much for your quick response.
This did indeed prevent the dialog from showing and all was looking good until the media name contained additional periods.
For example, 1.1.5.jpg displayed as 1.1.5. OK. But when renaming to 1.1.6 it instead became 1. The renamed version cannot contain the period character.
Please can this be fixed.
Best regards,
Steve
Hi Stephen,
Thanks for your patience.
Based on the information provided, we have validated and classified the reported scenarios regarding the "File/Folder rename issue with the dot value in the FileManager component" as a bug on our end. The fix for this issue will be included in the weekly patch release scheduled for mid-September 2025.
You can track the status of the fix through the following feedback link.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Regards,
Leo Lavanya Dhanaraj
Sivakumar S
- 4 Replies
- 4 Participants
-
SH Stephen Haines
- Aug 26, 2025 03:51 PM UTC
- Oct 19, 2025 04:18 AM UTC