1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-09-21 08:31:31 +02:00

show share link in uploaded files list

This commit is contained in:
Daniela Arcese 2017-06-05 09:48:57 -04:00
parent a1e2026759
commit 2668f22d8a

View File

@ -26,6 +26,7 @@ let onChange = event => {
fileSender.upload().then(info => { fileSender.upload().then(info => {
const url = `${window.location const url = `${window.location
.origin}/download/${info.fileId}/#${info.secretKey}`; .origin}/download/${info.fileId}/#${info.secretKey}`;
link.innerHTML = url;
localStorage.setItem(info.fileId, info.deleteToken); localStorage.setItem(info.fileId, info.deleteToken);
var del = document.createElement("td"); var del = document.createElement("td");
var btn = document.createElement("button"); var btn = document.createElement("button");