Skip to content

Commit 1dcbd3c

Browse files
authored
Merge pull request #6 from cloudinary-devs/correct_attachments
Add fl_attachment to the links to download
2 parents 5bb43e1 + 76a1e51 commit 1dcbd3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

upload/tutorial-uploads.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ <h1>Tutorial Uploads</h1>
4040
let transcriptUrl = `https://cloudinary-res.cloudinary.com/raw/upload/${result.info.public_id}.transcript`;
4141
let chaptersUrl = `https://cloudinary-res.cloudinary.com/raw/upload/${result.info.public_id}-chapters.vtt`;
4242

43-
document.getElementById("transcript").href = `${transcriptUrl}?response-content-disposition=attachment`;
43+
let transcriptUrlAtt = `https://cloudinary-res.cloudinary.com/raw/upload/fl_attachment/${result.info.public_id}.transcript`;
44+
let chaptersUrlAtt = `https://cloudinary-res.cloudinary.com/raw/upload/fl_attachment/${result.info.public_id}-chapters.vtt`;
45+
46+
document.getElementById("transcript").href = transcriptUrlAtt;
4447
document.getElementById("transcript").innerText = transcriptUrl;
4548

46-
document.getElementById("chapters").href = `${chaptersUrl}?response-content-disposition=attachment`;
49+
document.getElementById("chapters").href = chaptersUrlAtt;
4750
document.getElementById("chapters").innerText = chaptersUrl;
4851

4952
}

0 commit comments

Comments
 (0)