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();
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.