frontend: do not set content-length header on upload

This commit is contained in:
Johannes Zellner
2024-08-19 14:19:47 +02:00
parent e438ade08e
commit f220a1384c
-1
View File
@@ -97,7 +97,6 @@ export function createDirectoryModel(origin, accessToken, api) {
xhr.open('POST', `${origin}/api/v1/${api}/files/${encodeURIComponent(sanitize(targetDir + '/' + relativefilePath))}?access_token=${accessToken}`);
xhr.setRequestHeader('Content-Type', 'application/octet-stream');
xhr.setRequestHeader('Content-Length', file.size);
xhr.send(file);
});