mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Scalable server upload change
This commit is contained in:
parent
06917a92c7
commit
596cad37d3
@ -41,6 +41,7 @@ define([
|
||||
};
|
||||
|
||||
|
||||
const prefix = id.slice(0,2);
|
||||
let uploadUrl = '/upload-blob';
|
||||
let keys, cookie;
|
||||
if (ApiConfig.fileHost) {
|
||||
@ -60,7 +61,7 @@ define([
|
||||
edPublic: keys.edPublic
|
||||
};
|
||||
|
||||
fetch(uploadUrl, {
|
||||
fetch(`${uploadUrl}/${prefix}/${id}`, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user