Signed URL change.
This commit is contained in:
@@ -61,12 +61,20 @@ var c = "";
|
||||
console.log("RADIL" + file);
|
||||
fetch(url, {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
"content-type": "image/png"
|
||||
},
|
||||
mode: 'cors',
|
||||
body: file
|
||||
})
|
||||
.then(response => response.text())
|
||||
.then (console.log())
|
||||
.then (response => {
|
||||
console.log(response);
|
||||
return response;
|
||||
}
|
||||
)
|
||||
.catch(error => $("#status").html(error)
|
||||
)
|
||||
.then(response => $("#status").html('File uploaded successfully: ' + filename));
|
||||
.then(response => $("#status").html('File uploaded successfully: ' + filename + response.text()));
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user