Changeset 6631


Ignore:
Timestamp:
Jan 18, 2018, 8:54:11 AM (22 months ago)
Author:
kbut
Message:

patch url to upload file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/admin-center-ltsp.install/modul/lliurex-ltsp/src/js/imageManager.js

    r6628 r6631  
    13981398                        var req = new XMLHttpRequest();
    13991399                        var timer;
    1400                         req.open('POST','http://'+sessionStorage.server+'/uploadiso.php');
     1400                        var getUrl = window.location;
     1401                        var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
     1402                        req.open('POST',baseUrl+'/uploadiso.php');
    14011403                        req.upload.addEventListener("progress", self.progressUpload, false);
    14021404                        req.onreadystatechange = function(){
Note: See TracChangeset for help on using the changeset viewer.