Skip to content

Upload should use the TUS protocol #43

@wkloucek

Description

@wkloucek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions