working s3 integration, commented out load credentials from json

This commit is contained in:
Abhinav Adduri 2017-06-06 10:24:58 -07:00 committed by Danny Coates
parent f377aa4551
commit af4edfef16
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 116 additions and 86 deletions

View file

@ -58,8 +58,7 @@ $(document).ready(function() {
progress.innerText = `Progress: ${percentComplete}%`;
});
fileSender.upload().then(info => {
const url = `${window.location
.origin}/download/${info.fileId}/#${info.secretKey}`;
const url = info.url.trim() + `#${info.secretKey}`.trim();
$('#link').attr('value', url);
link.innerHTML = url;
localStorage.setItem(info.fileId, info.deleteToken);