Commit 99257551 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed authentication on file upload.

parent c4963d86
......@@ -32,17 +32,18 @@ class Upload {
}
uploadFile(file) {
console.assert(this.presigned_url)
console.assert(this.upload_url)
this.uploading = 0
const uploadFileWithProgress = async() => {
let { error, aborted } = await UploadRequest(
{
request: {
url: this.presigned_url,
url: this.upload_url,
method: 'PUT',
headers: {
'Content-Type': 'application/gzip'
'Content-Type': 'application/gzip',
...auth_headers
}
},
files: [file],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment