Thanks for the fast response! It is working now in a way - I am getting 500 error from the server, as when I am not using scheduleUpdate
parameter. Could you please explain, what is a proper way to send binary file to server? Currently I am doing it like this:
const videoInputFile = wnd.find('.upload-video-file').prop('files')[0]; // getting video file from input
const bodyOfQuery = {
privacy : 1,
channelId : channelInfo.id,
name : `${this.userName}:${new Date().toISOString()}`,
videofile : videoInputFile.slice(0),
}
const formData = new FormData();
Object.keys(bodyOfQuery).map(key => formData.append(key, bodyOfQuery[key]));
And this formdata object is passed to fetch call