PathUtil nodePath = fileTreeNode.getNodePath();
String downloadFileName = fileTreeNode.isDirectory() ? nodePath.getBaseName() + ".zip"
: nodePath.getBaseName();
Location location = elemental.client.Browser.getWindow().getLocation();
String urlHttpHostPort = location.getProtocol() + "//" + location.getHost();
String downloadUrl = "application/octet-stream:" + downloadFileName + ":"
+ ResourceUriUtils.getAbsoluteResourceUri(nodePath)
+ (fileTreeNode.isDirectory() ? "?rt=zip" : "");
event.getDataTransfer().setData("DownloadURL", downloadUrl);