Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Below is the code that is giving me problems, these requests are being made from inside a mashup. My issue is coming from the GET request not downloading the app. My initial POST request to the "/app/{id}/export/{token}" QRS endpoint is returning a download path to me but when I send the GET request to the download path it gives a response but it does not start a download. (Note: This is inside an event listener and the app ID value is coming from the selected element, it is coming through correctly.) Could anyone help show me what I'm missing?
Could you try programmatically creating a link element and clicking it to trigger the download?
const link = document.createElement("a");
link.download = // filename
link.href = // download link
link.click();
Source:
Could you try programmatically creating a link element and clicking it to trigger the download?
const link = document.createElement("a");
link.download = // filename
link.href = // download link
link.click();
Source:
@colsson that worked! Thanks for your help!