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?
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?