I´m trying to create pages and upload images to the unified file system programatically from outside the EPiServer admin.
Creating the pages work fine but not uploading the images. When i try to create a new directory using the PageData.GetPageDirectory(true)-method it throws an unauthorization exception.
Is there a way to set the accesslevel on the page so that I can create a dictionary and upload files?
Hi there.
I´m trying to create pages and upload images to the unified file system programatically from outside the EPiServer admin.
Creating the pages work fine but not uploading the images. When i try to create a new directory using the PageData.GetPageDirectory(true)-method it throws an unauthorization exception.
Is there a way to set the accesslevel on the page so that I can create a dictionary and upload files?
Some code:
Thanks a bunch.