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

ImageManager "Could not get SPFolder"

1 Answer 48 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 25 Oct 2007, 12:18 AM
Hi,

I know this is probably a really simple question but I couldn't find anything about configuring the ImageManager in the documentation.  I've got the following config in my ListConfigFile.xml

  <property name="ImagesPaths"> 
    <item>~/ImageLibrary</item>
  </property>
  <property name="UploadImagesPaths">
    <item>~/ImageLibrary</item>
  </property>
  <property name="ImagesFilters">
   <item>*.gif</item>
   <item>*.jpg</item>
   <item>*.jpeg</item>
   <item>*.png</item>
   <item>*.bmp</item>
  </property>

I've tried creating new document libraries and altering the links etc - presently i have the wiki that i'm trying to insert a picture at: http://testing/sites/central/TestWiki and the picture library at: http://testing/sites/central/ImageLibrary/.  When clicking on the image manager i get the error "Could not get SPFolder".  Any ideas what i'm doing wrong?

Thanks

Michael

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Oct 2007, 10:04 AM
Hi Michael,

You should only set the library name without any paths and special symbols before it. In addition you should remove the UploadImagePaths tags - they are not needed. Here is how you should set the ImagesPaths property in the ListConfigFile:

 <property name="ImagesPaths"> 
    <item>ImageLibrary</item>
  </property>
  <property name="ImagesFilters">
   <item>*.gif</item>
   <item>*.jpg</item>
   <item>*.jpeg</item>
   <item>*.png</item>
   <item>*.bmp</item>
  </property>

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Michael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or