Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

.Webm file attachment to jira issues via forge custom UI not showing preview

Esedo Fredrick
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2022

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();

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events