Hi,
I'm using Asp .Net and I have my user files under "App_Data/UserFiles". Of course, files are not served from there since it's a protected directory. So I want files to be server from a handler like this:
My current configuration goes like this:
This shows my files in the browser buty returns me a path like: /App_Data/UserFiles/Image/sonar_despierto.jpg
So how do I make this?
PS:
In FCKeditor I had it configured like this:
I hope you can help me. Thanks in advance
I'm using Asp .Net and I have my user files under "App_Data/UserFiles". Of course, files are not served from there since it's a protected directory. So I want files to be server from a handler like this:
"~/FileHandler.ashx?file=" + filepath;
My current configuration goes like this:
BaseDir = "/App_Data/UserImages/"; BaseDir = "";
This shows my files in the browser buty returns me a path like: /App_Data/UserFiles/Image/sonar_despierto.jpg
So how do I make this?
PS:
In FCKeditor I had it configured like this:
private string GetUrlFromPath(string resourceType, string folderPath) { if (resourceType == null || resourceType.Length == 0) return this.UserFilesPath.TrimEnd('/') + folderPath; else { //here I set the returning path return ResolveUrl("~/FileHandler.ashx?filePath=&" + this.UserFilesPath + resourceType + folderPath); //return ResolveUrl(this.UserFilesPath + resourceType + folderPath); } }
I hope you can help me. Thanks in advance
Re: Files using a File Handler in Asp .Net
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+