Browse Source

several small fixes

tags/v1.0.0
Remco 9 years ago
parent
commit
6a1e6d7ad0
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      transfersh-server/static/scripts/main.js
  2. +2
    -1
      transfersh-web/scripts/main.js

+ 1
- 1
transfersh-server/static/scripts/main.js
File diff suppressed because it is too large
View File


+ 2
- 1
transfersh-web/scripts/main.js View File

@@ -57,7 +57,8 @@ $(document).ready(function () {
$(li).html('<span>Error (' + xhr.status + ') during upload of file ' + file.name + '</span>');
}

files.push(URI(xhr.responseText).absoluteTo(location.href).toString());
files.push(xhr.responseText.replace("https://transfer.sh/", "").replace("\n", ""));
// files.push(URI(xhr.responseText).absoluteTo(location.href).toString());

$(".download-zip").attr("href", URI("(" + files.join(",") + ").zip").absoluteTo(location.href).toString());
$(".download-tar").attr("href", URI("(" + files.join(",") + ").tar.gz").absoluteTo(location.href).toString());


Loading…
Cancel
Save