WiP Signed url error.

This commit is contained in:
Naida Vatric
2020-02-14 15:34:33 +01:00
parent f24abf62b2
commit ba07b9311f
2 changed files with 19 additions and 19 deletions

View File

@@ -57,12 +57,14 @@ var c = "";
function uploadFile(file) {
$("#status").html('Starting Upload...')
url = c
url = c;
console.log("RADIL" + file);
fetch(url, {
method: 'PUT',
body: file
})
.then(response => response.text())
.then (console.log())
.catch(error => $("#status").html(error)
)
.then(response => $("#status").html('File uploaded successfully: ' + filename));