Setting Image Storage Path Programmatically Not Overriding Config Default

  •  01-09-2019, 9:51 AM

    Setting Image Storage Path Programmatically Not Overriding Config Default

    I'm trying to programmatically set the image storage path on a RTE image selector object I created but the dialog is still opening to the config default "~/uploads" path instead of the path I set.

     

    Code I've added to my editor LOAD event:  

    • ImageEditor.SetSecurity("Image", "default", "StoragePath", "~/content/images/slides")
    • ImageEditor.SetSecurity("Image", "default ", "StorageName", "Slide Images")
    •  

    When I execute the program and click to insert an image, the image/gallery is still opening to the config default "~/uploads" directory. Based on the documention under "Setting up the Image Gallery Path" I was under the impression my above code should be overriding that default during execution. Any help would be greatly appreciated.

View Complete Thread