Hiya,
I am trying to use the following configuration that I found in the manual:
----------------------------
Suppose you would like to modify the location of user uploaded files. You can do so without dynamically adding the control, but you should do so in the page init, not the page load. For example, here is an example which uses files for each team in the same directory:
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Session("FCKeditor:UserFilesPath") = "~/App_Images/" & _teamName
End Sub
----------------------------
I would like to use this method to dynaically control the UserFilesPath but I'm not having much luck! I am clearly getting it wrong as FCK keeps defaulting to the standard location. I am working in asp.net 2 using C#. I think the code above isn't c#, can anyone give me the c# version?
Any help is greatly appreciated.
Thanks
I am trying to use the following configuration that I found in the manual:
----------------------------
Suppose you would like to modify the location of user uploaded files. You can do so without dynamically adding the control, but you should do so in the page init, not the page load. For example, here is an example which uses files for each team in the same directory:
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Session("FCKeditor:UserFilesPath") = "~/App_Images/" & _teamName
End Sub
----------------------------
I would like to use this method to dynaically control the UserFilesPath but I'm not having much luck! I am clearly getting it wrong as FCK keeps defaulting to the standard location. I am working in asp.net 2 using C#. I think the code above isn't c#, can anyone give me the c# version?
Any help is greatly appreciated.
Thanks
RE: Use different upload folder - dynamically
I figured it out... here it is for anyone else with the same problem:
protected void Page_Init(object sender, EventArgs e)
{
Session["FCKeditor:UserFilesPath"] = "~/website/user_upload/";
}
Hope this helps
Alex