0

I am opening a pdf in new tab using the below function:

const blob = new Blob([data.body], {
            type: 'application/pdf'
          });
let url = URL.createObjectURL(blob);
            window.open(url, '_blank', 'noopener');

This is creating a blob URL for me of the form blob:localhost:8000/some random sys__UUID

Is there a way to create a URL of the form localhost:8000/some random sys__UUID/myDocument.pdf? (Without creating said file on the server)

0 Answers0