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

Local file open works, on server it doesn't

1 Answer 17 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Marnix Bouwman
Top achievements
Rank 2
Marnix Bouwman asked on 30 Sep 2013, 11:55 AM
Hi, I've got this code:

function OnClientFileOpen(oExplorer, args) {
        var isDirectory = args.get_item().isDirectory();

        if (!isDirectory) {
            var fileExt = args.get_item().get_extension();
                args.set_cancel(true);
                var itemPath = args.get_item().get_path();
                window.open(encodeURIComponent(itemPath));
        }
    }

When I try to open a file with a & in the path, locally it opens fine, however, if I try it on the server, it can't find the file.
I think it gives a 404 error.
So what can I do?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 02 Oct 2013, 02:38 PM
Hi Marnix,

Please take a look over the following forum thread for more information on why this issue is happening and how you can workaround this behavior: Image Preview not working

Kind regards,
Veselina Raykova
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
FileExplorer
Asked by
Marnix Bouwman
Top achievements
Rank 2
Answers by
Vessy
Telerik team
Share this question
or