R2Resource

class R2Resource(http: VmodalHttp)

Low-level signed object-upload helpers. Prefer the video upload extensions.

Constructors

Link copied to clipboard
constructor(http: VmodalHttp)

Functions

Link copied to clipboard
fun presignUploadFile(mode: String, groupName: String, streamName: String, modality: String, filename: String, expiresIn: Int = 900): PresignedUploadResponse

Creates a pre-authorized upload location for one file.

Link copied to clipboard
fun presignUploadFolderVideo(mode: String, groupName: String, streamName: String, filenames: List<String>, expiresIn: Int = 900): PresignedFolderResponse

Creates pre-authorized upload locations for a video-file batch.