id of video to add chapters to
list of chapters. Must have time value and one of title or imageFile
replace = POST/replace existing with this payload append = PUT/add or edit without removing existing
additional upload + request options
Replace an existing video with an uploaded file
Upload a profile image for a given user. Only account admins can upload user profile image.
Upload a video, and returns the resulting video ID
A File/Blob. if using nodejs you can also pass in the path to a file
metadata to add to video (title, etc.) - see API docs
Additional RequestInit
options, as well as customizing the contentType/contentLength/filename of the file
in the POST upload form (only needed if they can't be inferred from input)
the resulting video id
const rev = new RevClient(...config...);
await rev.connect();
// if browser - pass in File
const file = fileInputElement.files[0];
// if nodejs - can pass in path to file instead
// const file = "/path/to/local/video.mp4";
// upload returns resulting ID when complete
const videoId = await rev.upload.video(file, {
uploader: 'username.of.uploader',
title: 'video uploaded via the API',
//categories: [EXISTING_REV_CATEGORY_NAME],
unlisted: true,
isActive: true
/// ...any additional metadata
});
Functions to upload binary content to Rev.
See
Upload API Docs