Hi,
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,
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.
Vipin.P.C
6 Answers, 1 is accepted
0
Aaron
Top achievements
Rank 1
answered on 14 Feb 2012, 08:26 PM
Was this problem ever solved?
0
Hi,
Do you experience the reported problem with the following provider: Azure FileBrowserContentProvider?
Regards,
Rumen
the Telerik team
Do you experience the reported problem with the following provider: Azure FileBrowserContentProvider?
Regards,
Rumen
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Aaron
Top achievements
Rank 1
answered on 21 Feb 2012, 04:35 PM
Here is the link to my problem...
http://www.telerik.com/community/forums/aspnet-mvc/general/image-browser---deletefile-not-working.aspx
http://www.telerik.com/community/forums/aspnet-mvc/general/image-browser---deletefile-not-working.aspx
0
Hi,
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.
Kind regards,
Rumen
the Telerik team
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.
Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Aaron
Top achievements
Rank 1
answered on 24 Feb 2012, 04:29 PM
Ok Thanks,
Do you have any solution for my problem?
Do you have any solution for my problem?
0
William
Top achievements
Rank 1
answered on 14 Nov 2013, 07:06 PM
I know that this is an old post, but for what it is worth, what we found we had to do was to override the CheckDeletePermissions function. This is not in the TelerikAzureContentProvider, so it uses the default method for checking permissions on a folder.
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
'Return MyBase.CheckDeletePermissions(folderPath)
If Not IsNothing(DeletePermissionsByFolder) Then
If DeletePermissionsByFolder.Contains(folderPath) Then
Return True
Else
Return False
End If
End If
End Function
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
'Return MyBase.CheckDeletePermissions(folderPath)
If Not IsNothing(DeletePermissionsByFolder) Then
If DeletePermissionsByFolder.Contains(folderPath) Then
Return True
Else
Return False
End If
End If
End Function