Welcome Guest Search | Active Topics | Sign In | Register

File Explorer current file/selected file (Client Side) Options
Posted: Friday, April 30, 2010 4:40:06 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
Hi,

File Explorer object on the client side.

If I get the current file before selecting any file an empty string is returned by getCurrentFile() or getSelectedFile().

If I select a file then delete it, the getCurrentFile() or getSelectedFile() returns the value of the previously deleted file.

I would rather have an empty string returned. Is this a bug?
eo_support
Posted: Friday, April 30, 2010 6:05:34 PM
Rank: Administration
Groups: Administration

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

This looks like a bug. We will look into it and hopefully fix it as soon as possible.

Thanks!
Posted: Saturday, May 1, 2010 10:48:53 AM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
Also, not a big deal but if the root folder is set to a file path the getSelected... and getCurrent... client side calls return a path with forward slashes (/) like a virtual path.
eo_support
Posted: Monday, May 3, 2010 12:24:05 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix the getSelectedFile problem after item has been deleted. As to when a root folder is set to a file path, I believe that is the correct behavior because getSelectedFile always return a virtual path. It never returns physical path (for security reason). That's also why you need to use PathMapping object to map physical path into virtual path.

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.