Closed alxx28 closed 3 years ago
It allows either to download the file or you can show it inside HTML element
Are you looking for anything different?
@DaveLomber For Images works inside HTML element, but for a PDF a I am doing this and does not work:
dv_message.append('');
This is the downloaded file:
And I have manually to put the extension "PDF" to be able to view it.
The same thing occurs with the images.
I solved it with this: https://blog.jayway.com/2017/07/13/open-pdf-downloaded-api-javascript/, taking this solution I can open the PDF file in a new tab in the browser.
I have this fragment to receive files:
The problem is that the urls that represent and image or pdf file does not allow to view the image or the pdf file in a new tab.
I am getting urls of this type: https://api.connectycube.com/blobs/D72F4375BE3613E70D5D2EA023605EB08E9D
How do I convert this url in a legible file to view it in a new tab in the browser?