Welcome Guest Search | Active Topics | Sign In | Register

File Explorer Issue Options
Guest
Posted: Saturday, May 2, 2009 11:40:58 AM
Rank: Guest
Groups: Guest

Joined: 5/27/2007
Posts: -34
Hello,

In Ajax Uploader RootFolder property when I put in an external path such as "C:\Temp\", it errors out with:

RootFolder property must be a root-relative path starting with '~'(For example, '~/upload')

How can I set External paths without creating virtual folders? We really must be able to do this somehow. Please Help!

Thanks,
Praveen
eo_support
Posted: Saturday, May 2, 2009 1:07:18 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
No. You can not use FileExplorer with any files outside of your application root. We are thinking about enabling that in our coming builds, but there will be many security implications when you do that because an IIS application is often configured to be run under a special account with restricted previleges. In that case even our FileExplorer allows you to operate files outside your application root, NT permission system can still deny it.
Guest
Posted: Saturday, May 2, 2009 1:13:42 PM
Rank: Guest
Groups: Guest

Joined: 5/27/2007
Posts: -34
Hi,

Can we pay a little extra right now to get that done. We will configure the permissions on the external folders required to let the web user have access to those external paths.

In essence the concept is similar to allowing a person to upload a file using a file upload functionality of .net to a folder outside of the root folder and it works as long as the user has the correct permissions.

One the user uploads the file to the server using your file upload feature in the web editor, we need that uploaded file to use a pre-defined base-href in the HTML part of the code so it knows how to display the image properly. Please let me know your thoughts.

Thanks,
Praveen
eo_support
Posted: Saturday, May 2, 2009 1:40:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Praveen,

We are definitely interested in getting this done. Before that I would like to go over your requirement and make sure we are on the same page. Once it proves to be workable we can then talk about the price.

One of the biggest reasons for the FileExplorer to disallow access to files outside of application root is, except for the permission issues, is that the web users usually do not have a way to access the files outside of application root. You have mentioned about using base-href in the HTML page as a possible workaround for this. I believe I understand that but I would like to rephrase the scenario so that you can review it and make sure I understand it correctly.

For example, if your web application root is set to "c:\wwwroot\Praveen" and your website address is "www.praveen.com". The user can access "c:\wwwroot\Praveen\image.gif" with Url "http://www.praveen.com/image.gif". When user select "image.gif" with FileExplorer, The FileExplorer automatically returns "/image.gif" to you, which is a path that you can directly put anywhere in your page and it is accessible by the user without any additional code because “/image.gif” is being interpreted by the browser as "http://www.praveen.com/image.gif".

If we were to allow the file explorer to browse files outside of the root directory, for example, “c:\wwwroot\John”, then if user select file “c:\wwwroot\John\image.gif”, user would have no way to access that file through your site address “www.praveen.com”, because whatever the FileExplorer returns, it will be interpreted as relative to your site and the file is not within your site. In this case you must configure your server to provide a second address in order for users to access the file. For example, you can have a second site address “www.jonh.com” pointing to “c:\wwwroot\John”. That way you can either use the full path “http://www.john.com/image.gif” directly in the page, or use base element in your HTML page to set the base Url to “www.john.com” and then reference only “/image.gif” in your page. That way the image will be correctly displayed.

The key is that you will need to configure/code accordingly to provide a second “base Url”. I would imagine that you already have such configuration/code in place giving your circumstance. The remaining problem is that FileExplorer does not allow you browse any file/directory outside of your application root at all.

Please let us know if this correctly describes the circumstance.

Thanks!
Guest
Posted: Saturday, May 2, 2009 2:04:56 PM
Rank: Guest
Groups: Guest

Joined: 5/27/2007
Posts: -34
Hi,

Yes you have accurately stated everything. Following is our problem:

We have one centralized Backoffice Website where our clients login to in order to manage the content of their website which is saved and retrieved from our database.

Each one of these websites is on the same server but in a different folder structure outside of the Backoffice Website itself.

So lets say we have two client sites:
www.clientsite01.com D:\ClientSites\Client01\WWRoot
www.clientsite02.com D:\ClientSites\Client02\WWRoot

And the Backoffice site:
www.backoffice.com D:\BackOffice\WWRoot

So when Client # 1 logs into the backoffice, we load their content into the text editor with a base href of http://www.clientsite01.com and set the upload and view path of D:\ClientSites\Client01\WWRoot behind the scene so the user can view the files in this folder structure and upload to this folder structure.

Similarily if Client # 2 logs into the backoffice, we load their content into the text editor with a base href of http://www.clientsite02.com and set the upload and view path of D:\ClientSites\Client02\WWRoot behind the scene.

Does this sound doable? Please let me know.

Thanks,
Praveen
eo_support
Posted: Saturday, May 2, 2009 2:33:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I would think that's doable. We will look into the details and get back to you as soon as possible.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.