Cannot download PDF stored in Firebase storage using download URL - firebase

I uploaded a PDF file to firebase storage and I clicked on the generated Access Token to copy the download URL. I pasted the download URL in the web browser and the PDF opens in the browser. But I actually want the PDF to download instead of opening in the browser. I tried this with other file types such as zip files and when I paste the download URL on the browser it begins to download. I wonder why PDF's do not download?
PDF stored in firebase storage
Getting download URL from access token
Is there any way to make the PDF itself downloadable without compressing it?

Related

How to upload external pdf document to server NEXTJS

I've used hours to find out how to upload external pdf (or any other files) from url to server (for example to public folder like /public/uploads). I found tons of examples how to upload it from form, but not from the external url.
Lets say that I have this url https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
and I like to upload it to /public/uploads
Is there any directions or examples available?

viewing pdf and other files in iframe without downloading

I am developing a doc viewer in Microsoft dynamics365 to show documents stored in separate database. We have an api which helps us to download those files. So far I was using Iframe to view those doc files, it works for img and txt files but fails for pdf files.
one of the possible solution is converting to file url to base64 but I'm not sure that's the right approach

cannot access pdf using public url uploaded on cloudinary

I am trying to access pdf using public url uploaded on cloudinary however url request has been successfully completed but nothing showed.
Permission : Blocked for delivery shows in properties of pdf on cloudinary
Based on a recent update to our security policies, we've restricted delivery on newly created Free accounts for PDFs and Archive files. Such files can still be uploaded, but the restriction is specifically on delivery.
For PDFs that are uploaded with resource_type - "image", as they support transformations, they can be converted to images and will be delivered - e.g. by using the page transformation (pg_ in URLs) and setting the extension to jpg. -
in javascript we just need to replace extension to .jpg
response?.data?.url.replace(".pdf", ".jpg")
source
If you are on a free plan and need to deliver files in these formats, you can navigate to the Security tab of Settings in the Management Console and select to 'Allow delivery of PDF and ZIP files' or find it at the bottom.

How can I view an uploaded docx file in asp.net

I am working on a download management system in asp.net and I can upload and download a docx file. I want to view the uploaded file. I tried using google API but looks like I have to upload the file in google drive itself in order to be able to view it from google drive. I don't want to upload the file in google drive. Is there any other API that helps me to just view the uploaded docx file?
It would be even better if it can be viewed as well!
Use an iframe to embed File.embedLink, documented on
https://developers.google.com/drive/v2/reference/files#resource
I assume you know how to upload files in ASP.net
Using Office Web Apps you can achieve that, provide like of your uploaded document on your site, when the user clicks it will open in the browser it self Link, Read the documentation
Here is the link for API Site

How can I get the entire download path of report in report server, so that i can manually download .RDL file

I am fetching and displaying all the reports in Report server in a grid
Alongwith View Reports, I also want a Download Report functionality for each report.
How can I download .Rdl file using the download link.
I can give the Download links and download the file using JavaScript.
But, I am not able to get the download path of each report.
Is there a way to get the entire download path of report from Report Server.
Thanks

Resources