If i attach videos eg. .Webm file attachment to jira issues via forge custom UI, The File get sucessfully uploaded but not showing preview and also when downloaded, the files refuses to play. However, If try to attach .txt files, everything works as expected. Here is the code
const form = new FormData();
form.append('file', blob, 'attach.webm');
const responseFile = await requestJira('/rest/api/3/issue/'+issueKey+'/attachments', {
method:'POST',
body: form,
headers:{
'Accept': 'application/json',
'X-Atlassian-Token': 'no-check',
'Content-Type':'application/json'
}
});
let res = await responseFile.json();