1

Topic: Point to directory outside the webroot

I have set the filesystem.rootpath to point to a dir outside the webroot.
File manager shows nicely the files that are in the folder.

When I click on one of the files I get in the preview a message that the file can not be found.

The absolute path is /home/vhost/sitename.com/my_map/files/
The error message says:
'File not found at' http://www.sitename.commy_map/files/test.pdf

(note the 'commymap')

Is there some internal configuration that has to be done when clicking the selected file?

2

Re: Point to directory outside the webroot

What your preview.wwwroot setting?

Afraithe
TinyMCE Developer
Moxiecode Systems

3

Re: Point to directory outside the webroot

Thanks for your reply,

my preview.wwwroot setting is the same one as the filesystem.rootpath.

I can see all the files in the directory but I get an error if I want preview the file or if I link the file.

I will really appreciate your help. My customer don't want his files placed in the webroot.

Regards

Franco
webline-studio

4

Re: Point to directory outside the webroot

Well, for images outside of the webroot, you need to stream the image through.

Make a PHP page that just outputs the image (from the path it gets) (Please care for security issues). Then add that page on preview.urlprefix
http://www.tinymce.com/wiki.php/MCImage … .urlprefix

Ofc this means PHP still need access to read files in that folder.

Afraithe
TinyMCE Developer
Moxiecode Systems