This is a migrated thread and some comments may be shown as answers.

Image Manager Errors

3 Answers 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 06 Jun 2016, 10:27 PM

I think I'm missing something obvious, but I surrender.  I have an editor with the image manager tool enabled.  Below is my code behind code setting it all up, you can see that I create the directory if it is not there.  The image uploads successfully and is in the right directory.  However I am getting these three errors

  • After an upload – You are trying to navigate to a non-existing folder or you do not have proper permissions…
  • After I try the Image Edit - ImageEditor_Common_MessageCannotWriteToFolder
  • After I try to Delete – The selected file could not be deleted because the application did not have enough permissions.

 Any hints would be greatly appreciated.

'set imagemanager paths
Dim sImage As String = SSG.BYOC.Shared.Resource.GetClassroomSaveToFilePath(AppConfig.ClassroomFileUploadRoot, ClassID)
Dim sImagePath As String = Server.MapPath(sImage)
Dim imagePath As String() = New String() {sImage}
' Dim imageFilters As String() = New String() {"gif", "jpg", "jpeg", "png"}
 
If Directory.Exists(sImagePath) = False Then
    Directory.CreateDirectory(sImagePath)
End If
 
'ctlDescription.ImageManager.SearchPatterns = imageFilters
ctlDescription.ImageManager.ViewPaths = imagePath
ctlDescription.ImageManager.UploadPaths = imagePath
ctlDescription.ImageManager.DeletePaths = imagePath

3 Answers, 1 is accepted

Sort by
0
Chris Trina
Top achievements
Rank 1
answered on 07 Jun 2016, 04:14 PM

Please ignore this posting, I solve it.  

We were using a .net Path.Combine command to build the image path.  This is supposed to produce a cross platform friendly URL.  Unfortunately it was inserting a \ instead of a / which was causing the errors.  Some of the image manager functioned fine with the \, however other areas obviously were not.

 

Thanks!

0
Moon
Top achievements
Rank 2
answered on 13 Feb 2017, 05:43 PM

Thank you so much Chris Trina for this answer! I have been having this problem for years and Telerik always tells me it's my permissions. All I did was swap the \ with the / and now it works!!

Hopefully Telerik reads this so they can inform people who ask next time!

thanks!

0
Vessy
Telerik team
answered on 14 Feb 2017, 01:39 PM
Hi guys,

We do read this and will have this scenario in mind should any other users face the same problem. Thank you for sharing the solution with us!

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Chris Trina
Top achievements
Rank 1
Moon
Top achievements
Rank 2
Vessy
Telerik team
Share this question
or