Remote Root?

Added by Brandon Heat 11 months ago

Hi,

I've been using this great app for a couple of weeks and it works perfectly.

Now, my problem is that I have to connect elfinder to a remote site. Is this possible? If so, how can I set the path to root?

TIA


Replies (7)

RE: Remote Root? - Added by Troex Nevelin 11 months ago

So if I understand right you want client to be on the one host and connector on the other? - If so, it is possible. You will need to set additional headers for connector reply:

header('Access-Control-Allow-Origin: http://CLIENT_HOST.com');

Read more about HTTP Access Control

RE: Remote Root? - Added by Brandon Heat 11 months ago

it works!

thank you very much, sir!

kudos to your great plugin!

RE: Remote Root? - Added by simon watts 10 months ago

I am trying to achieve the same as this. I am not sure how to configure this and whether it will have normal functions such as upload etc. . Where abouts do I add these headers. Is this in the main index file or in the connector class. Will this also work on the new version of elfinder.

RE: Remote Root? - Added by Troex Nevelin 10 months ago

This Access-Control-Allow-Origin approach has nothing to do with elFinder itself it a new way for doing cross-domain request, currently FireFox and Chrome only support this feature, IE8/9 need some workarounds and Opera doesn't support it at all. Read more about it https://developer.mozilla.org/en/HTTP_access_control and http://www.w3.org/TR/cors/

This will work with elFinder 2 also.

RE: Remote Root? - Added by simon watts 10 months ago

Thanks Troex. I have got elfinder working on www.tonido.com. I dont know if you have heard of it. You can connect to your home computer wirelessly. I have managed to get elfinder to work as a plugin, but this would work better if I could make it work this way. I can send you it when I have finished. I am not sure if you will find it useful. Tonido has a file manager but this is written in c#. Obviously elfinder is in php, so is easier to work with, and looks better.

RE: Remote Root? - Added by Sistema Datos 9 months ago

How does it works in Internet Explorer????? Urgent help...

RE: Remote Root? - Added by Troex Nevelin 9 months ago

By default NO, but IE8+ supports XDomainRequest maybe we will add this as option feature in next releases of elFinder 2.x.

(1-7/7)