es[0], path.value);
    requests.add("POST", "/edit", formData, httpPostProcessRequest);
    var uploadPath= ge("upload-path");
    uploadPath.value="/";
    var uploadSelect= ge("upload-select");
    uploadSelect.value="";
  };
  input.onchange = function(e){
    if(input.files.length === 0) return;
    var filename = input.files[0].name;
    var ext = /(?:\.([^.]+))?$/.exec(filename)[1];
    var name = /(.*)\.[^.]+$/.exec(filename)[1];
    if(typeof name !== undefined){
      filename = name;
    }
    pa