Preview of Images not working with CustomFileSystemProvider

2 posts, 0 answers
  1. Abdul Rehman
    Abdul Rehman avatar
    1 posts
    Member since:
    Apr 2010

    Posted 02 Jun 2010 Link to this post

    While using PhysicalFilePath, the Preview is not displaying the image
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 04 Jun 2010 Link to this post

    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,
    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.
Back to Top