Uploads currently use a simple Webdav PUT request to upload files. All clients use the TUS procotol for uploads, so the cdperf tools should use it, too.
See
|
upload(id: string, path: string, data: ArrayBuffer, credential: Credential): Result { |
|
const uploadResponse = http.request( |
|
'PUT', |
|
`${this.baseURL}/remote.php/dav/spaces/${id}/${path}`, |
|
data, |
|
buildParams({}, { credential }), |
|
); |
|
|
|
check(uploadResponse, { |
|
'dav upload': ({ status }) => status === 201, |
|
}); |
|
|
|
return { response: uploadResponse }; |
|
} |
Uploads currently use a simple Webdav PUT request to upload files. All clients use the TUS procotol for uploads, so the cdperf tools should use it, too.
See
cdperf/src/lib/api/dav.ts
Lines 120 to 133 in 3b88374