- I have used the code below to assign permissions when deleting with the delete key.
public AccessDetails GetRules(string permission)
{
AccessDetails accessDetails = new AccessDetails();
List<AccessRule> accessRules = new List<AccessRule> {
new AccessRule { Path = "/*.*", Role = "Adminstrator", Read = Permission.Allow, Write = Permission.Deny, Copy = Permission.Deny, WriteContents = Permission.Deny, Upload = Permission.Deny, Download = Permission.Deny},
new AccessRule { Path = "/*.*", Role = "Adminstrator", Read = Permission.Allow, Write = Permission.Deny, Copy = Permission.Deny, WriteContents = Permission.Deny, Upload = Permission.Deny, Download = Permission.Deny, IsFile=true},
};
accessDetails.AccessRules = accessRules;
accessDetails.Role = "Adminstrator";
return accessDetails;
}
- If I choose to delete by clicking Delete in MenuContent on File Manager, the system returns an error message.
- However, if I delete the file with the delete key, the system is always loading
Hi Pham,
We have validated your reported issue by preparing a Blazor FileManager sample with Access Control. While performing a delete operation through the Toolbar/Context Menu, the permission denied error will occur immediately. But deletion using the keyboard key initially shows a "yes or no" confirmation dialogue and then shows a permission denied message. This is the default behavior. Please check the attached sample for reference.
Screenshot:
|
|
If we misunderstood your requirement, replicate the issue in the shared sample. It would help us provide a prompt solution. Please let us know if you need any further assistance.
Regards,
Sivakumar S
Hi Sivakumar S ,
If you pass in a dynamic link, you will get an error like mine
Regards,
Pham Ngoc
Hi Pham,
We have validated your reported issue in the Blazor FileManager sample with a shared code snippet. We were unable to replicate the issue for the first time, but for the second time, we were able to face the issue while clicking the delete key. Please confirm this is the exact issue you are facing or else whether the issue occurs at the initial time at your end. These details would help us with further validation of the issue.
Please check the shared sample and get back to us with the required details.
Regards,
Sivakumar S
Hi Sivakumar S ,
Yes, this is my problem. I have attached the source for you.
Could you please help me check. Thanks
Hi Pham,
Thanks for the confirmation. We are facing the reported issue only when the additional string is passed to the server. So, we need some additional time for this validation to identify the exact root cause. We will update you with further details on April 26, 2022.
Regards,
Sivakumar S
Ok, Thanks Sivakumar S.
Hi Pham,
We have validated the reported issue in the Blazor FileManager component and considered it as a bug at our end. The fix for this issue will be included in our weekly patch release on May 24, 2022. You can track the status of the issue fix using the following feedback link.
We appreciate your patience.
Regards,
Sivakumar S
Hi Pham,
You are welcome. As promised earlier, we will provide the fix for the reported issue on May 24th.
Regards,
Ranjani
Hi Pham,
Sorry for the inconvenience.
Based on the level of priority, we are sorry that the issue “Need to fix the keyboard delete key operation issue in the Blazor FileManager component” isn’t included as promised. We are working on this with high priority. This fix will be included in the weekly patch release on June 14, 2022.
We appreciate your patience.
Regards,
Indhumathy L
Hi Pham,
Thanks for your patience.
We are glad to announce that our patch release (V20.1.60) has been rolled out successfully. The issue “Need to fix the keyboard delete key operation issue in the Blazor FileManager component” has been resolved in this release. To access this fix, we suggest you update the package to the 20.1.60.
Please find the sample from below link.
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/FileManager1968750793.zip
Release notes: https://blazor.syncfusion.com/documentation/release-notes/20.1.60?type=all#file-manager
Please let us know if you need any further assistance.
Regards,
Prasanth Madhaiyan.