This is a migrated thread and some comments may be shown as answers.

Preview of Images not working with CustomFileSystemProvider

1 Answer 34 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Abdul Rehman
Top achievements
Rank 1
Abdul Rehman asked on 02 Jun 2010, 09:04 AM
While using PhysicalFilePath, the Preview is not displaying the image

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 04 Jun 2010, 03:42 PM
Hi Abdul,

I am not quite sure that I understand your question.

If you are using the custom content provider from this KB article - the file handler of this content provider has a method demonstrating how to download images (or files with specific extension). The following code is managing this feature:
if (Path.GetExtension(physicalPathToFile).Equals(".jpg", StringComparison.CurrentCultureIgnoreCase))
{// Handle .jpg files ;
    WriteFile(physicalPathToFile, "image/jpeg", Context.Response);
}
If you comment this section the download of the JPG files will be disabled.

If this is not your scenario, could you please provide more detailed information on the problem? A sample working project demonstrating the issue will be of great help.

All the best,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
Abdul Rehman
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or