Problem downloading file

3 posts, 1 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 20 Aug 2009 Link to this post

    I'm using a FileExplorer to list files and directories from disk.

    Question 1
    I have a file called: "Du som yrkesmässigt använder högbeskattad ofärgad diesel.docx"
    But when I clicked the file it opens a new page in explorer 8 saying: The Page cannot be found, if I click another file like "bla bla bla.docx" it opens the save as dialog.
    The first file is also urlencoded so in explorer so it says:

    So what is wrong with the file? Or the filename?

    Question 2
    We are using many different kind of files, for example .dotx and none web browser know this type of file extension so it generates error when trying to download, is there some way to always get a save as dialog for all files?


  2. Answer
    Fiko avatar
    1406 posts

    Posted 24 Aug 2009 Link to this post

    Hi Mattias,

    In reference to your questions :
    • Do you use a custom provider and url-encode the paths? If so, you need to decode them in the GenericHandler (.ashx file that handles the files) before using the paths. In case that your scenario is different, please open a new support ticket and send me a runnable sample. I will check it and do my best to help.
    • This is a specific browser behavior and it is not directly elated to the RadFileExplorer control. More details on the subject can be found in this forum thread.
    I hope this helps.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 24 Aug 2009 Link to this post

    Hi Fiko,
    I think I have solved it now! :)
    I rebuild the generic handler so it grabs every type of files and sends it to the client (save as box).

    And with the first problem, the file name contained a "+"character and that's why the file system didn't find the file.

Back to Top