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

Problem downloading file

2 Answers 75 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 20 Aug 2009, 12:36 PM
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:
Du%20som%20yrkesmässigt%20använder%20högbeskattad%20ofärgad%20diesel.docx



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?

Regards,
Mattias

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 24 Aug 2009, 10:42 AM
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,
Fiko
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.
0
Mattias
Top achievements
Rank 1
answered on 24 Aug 2009, 11:57 AM
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.

/Mattias
Tags
FileExplorer
Asked by
Mattias
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or