Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PDF downloads are corrupt/not accessible #3028

Open
rmsgreig83 opened this issue Apr 4, 2023 · 4 comments
Open

[Bug] PDF downloads are corrupt/not accessible #3028

rmsgreig83 opened this issue Apr 4, 2023 · 4 comments

Comments

@rmsgreig83
Copy link

Describe the bug

https://www.nationalphotonic.com/product/datasheet-asys-dbell-110/
When you download from this website through duckduckgo on android the pdf will not open, if you add them to dropbox it says they are corrupt/unsupported.
The downloads work on other browsers on android (chrome) and work on desktop on duckduckgo/chrome/firefox any ideas how to fix this?
many thanks

How to Reproduce

Go to '...'
Click on 'Download Now'
Open file
See error

Expected behavior

file should open as normal pdf

Environment

- DDG App Version: 5.154.0
- Device: Samsung Galaxy Tab A
- OS: Android
@dryaz
Copy link

dryaz commented Jun 3, 2023

Provided example tries to download

url: https://www.nationalphotonic.com/product/datasheet-asys-dbell-110/
contentDisposition: inline; filename="ASYS-dBELL-110-230321-Mod-230405-compressed-hzoaog.pdf";
mimeType: application/pdf

DDG downloads provided URL as requested but there is an HTML under this url.
Reason why it's impossible to open it as PDF 'cause it's not a PDF. It's also possible to rename downloaded file with *.html suffix and open it as valid web page.

Server responds with PDF to show but android webView doesn't have option to show PDF.

@flambers
Copy link

I've experienced dame issue with several pdfs. Then tried to download from another browser and they were noto corrupted.
Could you provvide a fix for Android? Thanks

@rohit9625
Copy link

I just tried reproducing this issue on the DDG from the Google Play Store but the PDF was downloaded successfully.

@githubyouser
Copy link

I've experienced dame issue with several pdfs. Then tried to download from another browser and they were noto corrupted.
Could you provvide a fix for Android? Thanks

I'm experiencing the same issue with PDF files that are generated by mpdf. Other browsers seem to download them fine, but DDG downloads the webpage with a .pdf extension instead of the PDF file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants