I am new to monday apps framework and building a item view. I am trying to upload a file with monday sdk and using this code,
const query = `mutation add_file($update_id:Int!, $video: File!) {
add_file_to_update(update_id: $update_id, file: $video) {
id
}
}`;
monday.api(query, {
variables: {
video: new File([blob], "video.mp4", {
lastModified: new Date(),
type: "video/mp4",
}),
update_id: 7894482,
},
});
And this is the request i see going through in chrome developer tools and failing with 500 error. Can someone help me with this ?