Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload should use the TUS protocol #43

Open
wkloucek opened this issue Feb 22, 2023 · 0 comments
Open

Upload should use the TUS protocol #43

wkloucek opened this issue Feb 22, 2023 · 0 comments

Comments

@wkloucek
Copy link
Contributor

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

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 };
}

@fschade fschade mentioned this issue Apr 16, 2023
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant