Roxen.git / server / modules / js-support / scripts / roxen / modules / afs.js

version» Context lines:

Roxen.git/server/modules/js-support/scripts/roxen/modules/afs.js:340:    if (!groups[group]) groups[group] = [ ];    groups[group].push(args.tag);    }       args[session_var] = session;    open_connections++;       // Initiate transfer    var url = actions_prefix + action + "?" + encode_afs_args(args);    var fd = new FormData(); -  for (var i = 0; i < files.length; i++) -  fd.append("upload-file-" + i, files[i]); +  for (var i = 0; i < files.length; i++) { +  fd.append("upload-file-" + i, files[i], files[i].name); +  }    var xhr = new XMLHttpRequest();    xhr.open("POST", url, true);    xhr.onreadystatechange = function() {    if (xhr.readyState === 4) {    if (xhr.status === 200) {    // Invoke success callback    request_success(xhr);    } else if (xhr.status === 0 || xhr.status >= 400) {    // Invoke failure callback    request_failure(xhr);