You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Shaun Tarves (JIRA)" <ji...@apache.org> on 2017/06/14 20:13:02 UTC

[jira] [Created] (GUACAMOLE-327) File upload/download in IE

Shaun Tarves created GUACAMOLE-327:
--------------------------------------

             Summary: File upload/download in IE
                 Key: GUACAMOLE-327
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-327
             Project: Guacamole
          Issue Type: Bug
          Components: guacamole-client
    Affects Versions: 0.9.12-incubating
            Reporter: Shaun Tarves


Internet Explorer, including 11, doesn't have support for location.origin so when trying to build the URL for the XMLHttpRequests in tunnelService.downloadStream and tunnelService.uploadToStream, the string "undefined" gets prepended onto the URL, rendering that functionality unusable.

The workaround/polyfill for this is pretty simple and well documented on the web and is basically:

if (!window.location.origin) {
  window.location.origin = window.location.protocol + '//' + window.location.hostname + (window.location.port ? (':' + window.location.port) : '');
}

reference: https://gist.github.com/hbogs/7908703



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)