1

Topic: Problem whit file name!

Hi,

i'm using filemanager whit any problem when i use it in a normal directory.
But i'm trying to make it work in a directoy like: "../files" when i'm in the root of my website. So this directory does not have a path (for security reason).

Filemanager work fine, but when i double click on a file the tool write down the name in the field like this:

"filenamefilename.jpg" will become "www.site.euename.jpg" where "www.site.eu" is my site...

Name of files are replaced whit my domain.

why this happening?
how i can work around it? i just need the name of the file.
i call filemanager whit a link. (i tryed all option in documentation)

Tnx in advice

2

Re: Problem whit file name!

Yes, you need to configure preview.wwwroot to an absolute path where the root of your site is. Check the FAQ for details.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: Problem whit file name!

it don't solve the problem...
somethig keep replacing the file name whit the domain name.

the problem is not showing when i work in a normal directory. This directory is before "public_html" and give this problem.

4

Re: Problem whit file name!

any idea? sad

5

Re: Problem whit file name!

As said before the preview.wwwroot needs to be configured properly.
Here is some psuedo logic on how the preview.wwwroot is used.
url = preview.urlprefix + fileAbsolutePath.substring(preview.wwwroot.length)

So it takes the absolute file system path crops away the preview.wwwroot length and then adds the preview.urlprefix to produce an absolute URL.

If the preveiw.wwwroot length isn't correct the above operation will crop to much or to little.

You can use log.enabled=true and log.level=debug to get messages on what these different parts are in a log file if you need more details.

Best regards,
Spocke - Main developer of TinyMCE