If I have read everything correctly to use a folder outside the root to protect documents from download I need to set:
or whatever directory I choose to use and then I can set:
or whatever alias I choose and everything should be fine.
This isn't working for me unleass I create a mapping within the webserver which basically defeats the purpose.
Any insight would be helpful or am I totally off base?
I can upload and the files go where I want them, but the embedded the link to the image or file it breaks referring to a location within the root and not the directory outside the web root.
Thanks,
T.
config.baseDir = 'C:/files/';
or whatever directory I choose to use and then I can set:
config.baseUrl = '/myfiles/'
or whatever alias I choose and everything should be fine.
This isn't working for me unleass I create a mapping within the webserver which basically defeats the purpose.
Any insight would be helpful or am I totally off base?
I can upload and the files go where I want them, but the embedded the link to the image or file it breaks referring to a location within the root and not the directory outside the web root.
Thanks,
T.

Re: Secure Folder Outside Web Root
viewtopic.php?f=10&t=9815&p=25611
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Secure Folder Outside Web Root
CKFinder works perfectly - I can do everything I need from within the interface (view, download, upload, etc.). I'm using CKfinder as the filemanager for FCKeditor and I want to store the files outside the webroot so for certain files people can't just grab them if they have the URL. So when I select the file and it creates the link in fckEditor, the link doesn't work because it is looking in the wrong place (unless I create a mapping, which defeats the purpose).
Thanks for the info - I think I know what I need to do... I'll post back with my solution - if I get it to work.
T.
Re: Secure Folder Outside Web Root
have you figured out how to store the user files outside the webroot folder?
if so, can u post your solution here?
thank you
cmgui
Re: Secure Folder Outside Web Root
config.baseUrl = '#session.baseURL#';
userFolder = '#session.BaseFile#';
config.baseDir = '#session.baseDir#';
###########################################################################################
files.cfm
###########################################################################################
<cfparam
name="file_path"
type="string"
default="#url.url#" (***get file path from url***)
/>
<cfscript>
// get a file with path
myFile = "#file_path#";
// find the mime type (string)
mimetype = getPageContext().getServletContext().getMimeType(myFile);
</cfscript>
<CFPARAM NAME="session.pagePermissions" DEFAULT="0">
****get page access permissions from CMS and check if user has access****
<cfobject name="RoleService" component="#application.CFCPath#path.to.component">
<cfif GetAuthUser() is not "" and RoleService.CheckUserInRole(#Session.pagePermissions#)>
***if yes - server up the file***
<cfheader name="Content-Disposition" value="inline; filename=#file_path#">
<cfcontent type="#mimetype#"
file="C:\path to folder\#file_path#"
deletefile="No">
<cfelse>
Access to this document is restricted...
</cfif>
######################################################################################
Re: Secure Folder Outside Web Root
viewtopic.php?t=22310
Re: Secure Folder Outside Web Root
C:\path to folder\