Url problem on file select


I've recently started working with the elrte and elfinder for a project of mine and I found your .Net connector, which I think is awsome!
I use the Project found in: "...elfinderconnectornet\Example\ElFinder.Net\ElFinder.Connector\"
Scenario: Use elrte & elfinder together, select (double click or select button) a file in the root directory called a.png.
Problem: When I used elrte and elfinder together, and selected the file described in the scenario above it returned:
but the absolute path to the file was:
I made a small change in the public Cdc(System.IO.FileInfo file) method of the Cdc.cs class. I changed the this.url to: this.url = Configuration.Configuration.RootUrl + file.PathFromRoot().Replace(@"\", "/");
I also added the PathFromRoot() method to FileUtils.cs. I'm attaching the complete working projekt,
Thank you for building this connector, made my life a lot easier! :o)

file attachments


ailinalbertoni wrote Jun 11, 2012 at 5:59 PM

Have you an example using this Connector? I am with problems to work. Always obtains an error "Access Denied."

wrote Feb 14, 2013 at 6:07 PM