By Jonathan Thompson on Tuesday, 16 January 2018
Posted in General Issues
Replies 14
Likes 0
Views 856
Votes 0
The invoice downloaded from the payplans dashboard is an html file rather than a pdf file. When the .html part of the file name is removed it displays properly as a pdf.
Hello Jonathan,

I tried to download pdf of invoice using one testuser , it's working file. No html is added in string.
See attached screen shot.

Please share some more details
1. Are you facing this issue with every user or specific one.
2. Which browser you are using and version also.
3. Try to download pdf from another browser and check this issue.

Update me.
·
Tuesday, 16 January 2018 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I tested on Chrome and it is fine.

The problem is on macOS 10.13.2 / Safara 11.0.2. Same problem occurs iOS, iPhone and iPad, both with latest software updates.

Thanks

Jonathan
·
Wednesday, 17 January 2018 02:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Please refer below mentioned link to resolve pdf issue is safari.
http://www.echeng.com/journal/2013/01/29/safari-wont-save-or-print-pdfs

Update me if still issue persist.
·
Wednesday, 17 January 2018 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I tried this solution but it did not resolve the problem.

Also - when a pdf file is shared on the stream on my website the pdf file downloads correctly. So other portions of the site downloads pdf without a problem in Safari in macOS and iOS. I found the same problem in Firefox in iOS but Firefox works fine on the desktop. It is only with the invoice download.

Thanks

Jonathan
·
Wednesday, 17 January 2018 19:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It seems browser issue. Can you please some more solution mentioned below.
https://apple.stackexchange.com/questions/189419/files-are-being-downloaded-with-html-suffix
https://davidwalsh.name/download-attribute

Update me with results.
·
Wednesday, 17 January 2018 20:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I read the first article previously. It states

"This is outside of your control - the headers being sent by the school's web server determine what file type Safari thinks it is, and therefore appends the extension it thinks is appropriate. In this case, most likely the Content-Type and/or Content-Disposition headers are not being sent, or not being sent correctly. See this for a more technical explanation."

It points here for the more technical explanation - https://stackoverflow.com/questions/11487365/http-header-for-downloading-microsoft-word-and-excel-files

This involves code that I don't understand.

Also the pdfs in easysocial download with no problem - it is just the pdfs generated by payplans that seem to cause the issue. I think if it was a browser issue only it would affect all the pdfs.
·
Wednesday, 17 January 2018 20:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jonathan,

Thanks for sharing detailed information.
I'll check it and keep you updated soon.
·
Thursday, 18 January 2018 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jonathan,

I have applied some changes at your site.
Please cross check it again and update me.
·
Thursday, 18 January 2018 19:28
·
0 Likes
·
0 Votes
·
0 Comments
·
I cleared caches and tried but the download still is an html file.
·
Thursday, 18 January 2018 19:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jonathan,

We have fixed this issue at your end, please take a look and update me if still issue exist.
·
Friday, 19 January 2018 11:27
·
0 Likes
·
0 Votes
·
0 Comments
·
I receive the attached error message across all browsers now.
·
Friday, 19 January 2018 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Let me know have you update anything on site after my reply, any thing updated on server .
Please update me if anything changed, as m checking this issue.
·
Friday, 19 January 2018 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
No. There have been no changes.

Thanks for your help.

JT
·
Friday, 19 January 2018 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing these details.
This issue is related to dompdf, m working on this, will update you soon.
·
Friday, 19 January 2018 21:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post