I am working on an asp.net project using telerik tools version '2011.2.712.40'. I have customized the Image manager control. I am able to upload files into the blob as well as to store reference into the sql table. But, I am not able to delete a file from the Image Manager control. An error message 'The selected file could not be deleted because the application did not have enough permissions. Please contact the administrator' appears when I am trying to delete a file. In the telerik site, I found the flow of the delete functionality is like,
1. GetPath - Gets the parent folder for the deleted item
2. ResolveDirectory - Checks permissions
3. DeleteFile - Deletes the item
4. ResolveRootDirectoryAsTree - Updates the parent tree node
5. ResolveDirectory - Updates the parent tree node ResolveRootDirectoryAsTree - Updates the RadGrid
6. ResolveDirectory - Updates the RadGrid
But, Break point is not coming to the 'DeleteFile' method. Please help me.
6 Answers, 1 is accepted
The problem reported by Vipin.P.C applies to RadEditor for ASP.NET AJAX, but the problem that you experience is related to Telerik Editor for MVC. These are two different controls which are not related to each other.
the Telerik team
Do you have any solution for my problem?
Since this is Azure Blob storage, there is no standard directory permissions because there really are no directories, just blobs in a container. An assembalance of a directory structure can be simulated by using "/" in the blob names, but the fact is the "/" are actually part of the blob name.
What we do is add to a private variable list, all the paths provided in the deletePaths parameter when the class is new'd up.
Then in the override of the CheckDeletePermissions, we check to make sure that the path being passed in is in our deletePaths.
Public Overrides Function CheckDeletePermissions(folderPath As String) As Boolean
If Not IsNothing(DeletePermissionsByFolder) Then
If DeletePermissionsByFolder.Contains(folderPath) Then