Welcome Guest Search | Active Topics | Sign In | Register

thumbnail view not working with pathmapping Options
neenu
Posted: Tuesday, September 28, 2010 4:15:10 AM
Rank: Newbie
Groups: Member

Joined: 9/28/2010
Posts: 2
hello, I am using file explorer and setting pathmapping's 3 properties according to my requirement,but when i set these, then everything works perfectly in explorer exxcept thumbnail view.single image preview comes in right pane but in central where all images are shown , there thumbnails view is not appearing. grid view is ok.
Please tell where i can be wrong.
I am using pathmapping like this:

EO.Web.PathMapping pathMapping = new EO.Web.PathMapping();
pathMapping.Path = Server.MapPath("~/testsite/userfiles");
pathMapping.DisplayName = "MyFiles";
pathMapping.Url = "http://localhost/testsite/userfiles";

FileExplorer1.PathMappings.Add(pathMapping);
FileExplorer1.RootFolder = Server.MapPath("~/testsite/userfiles");

Kindly help.
Regards
Neenu
eo_support
Posted: Tuesday, September 28, 2010 9:53:27 AM
Rank: Administration
Groups: Administration

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

Can you explain what you mean by "thumbnail view is not appearing"? You can either post or email a screenshot to us. We tested it at here and it works fine.

Thanks!
neenu
Posted: Wednesday, September 29, 2010 2:45:14 AM
Rank: Newbie
Groups: Member

Joined: 9/28/2010
Posts: 2
Please check in screenshot, thumbnail view area is blank.




eo_support
Posted: Wednesday, September 29, 2010 10:18:22 AM
Rank: Administration
Groups: Administration

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

We tested this on the latest version and it works fine. So you may want to try the latest version first. If the problem continues, we will need you to create a test project that demonstrates the problem and send it to us.

Thanks!
Laura_S
Posted: Tuesday, November 20, 2012 3:42:33 AM
Rank: Newbie
Groups: Member

Joined: 8/24/2012
Posts: 1
Hello,

I'm facing a similar issue. When setting the File Explorer's RootFolder property to a relative path, everything's working correctly. If I set the RootFolder property to an absolute path, the thumbnails are not displayed. Though, browsing the folder and previewing images in the right pane are working.

I also noticed that after renaming the .gif files and adding more image files, they also stopped showing up in preview panel anymore when using absolute paths. The two .jpg files shown in picture below are displayed properly. These two are files that came to the directory upon creation (i copied the directory with its contents from another source). This is not happening when using relative paths.

My implementation uses Pathmapping when using absolute paths as the RootFolder, not when using relative paths. So it seems that using Pathmapping causes the problem somehow.

Any help to this problem is appreciated. I am using the EO.Web Controls 2012 version with Developer license.



eo_support
Posted: Tuesday, November 20, 2012 11:29:43 AM
Rank: Administration
Groups: Administration

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

That's normal. The final path for the preview has to be a Url path, instead of an absolute file path. This is because the client browser can not access a server side file path. It can only access the file through an Url. So you can not use absolute file path and preview together.

Thanks!
Andrew
Posted: Monday, March 24, 2014 7:05:57 PM
Rank: Member
Groups: Member

Joined: 7/3/2008
Posts: 12
eo_support
Posted: Monday, March 24, 2014 7:21:46 PM
Rank: Administration
Groups: Administration

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

They don't work not because of the FileExplorer. We disabled it on purpose. For security reason, we disabled browsing permission on the folder because our sample also allows user to upload to that folder. If we do not disable browsing permission, it would be possible for user to upload an .aspx file with whatever code they put in, then browse that .aspx file they just uploaded to execute their code on our server. Obviously this would be a problem.

it's generally safe if you use FileExplorer to browse a folder with only static files (images, txt, etc). However if you also allow user to upload, then you have to either enforce the type of files they can upload, or use a separate folder for uploading. Our sample is only meant to give a basic demonstration of all the feature instead of diving into all the security details, as such it does not take special security measures in the code. As a result, we disabled browsing permission on that folder in order to run the samples safely on our server.

If you run the sample project on your own machine locally (or even if you deploy the sample app directly to a remote server), you will see everything working fine.

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.