- Posts: 28
COMMUNITY FORUM
PDF attachment corrupted on nownload
- nick
-
Topic Author
- Offline
- Junior Member
Less
More
8 years 10 months ago #155717
by nick
PDF attachment corrupted on nownload was created by nick
I discovered recently that PDF files (attachments) could not be opened (file corrupted) when downloaded.
I get this message when trying to open them after download: "There was an error opening this document. The file is damaged and could not be repaired."
This is a problem when Attachments is set to SHOW in 'Item view'. Clicking on the link to download the file, will download it, but it is corrupted and can't be opened.
However, when in admin, the download link in 'Operations' (where you add Attachments) will download the file correctly.
AND if that Operations link is copied and pasted for the visitors to download, then that works, and the file is fine.
Here are the two links to the files: the first one works fine (taken from admin) but the second one (from show attachments) does not. They both reference the same file:
http://www.___/administrator/index.php?option=com_k2&view=item&task=download&id=201_ffff026862846795a45310ca7fb9f4b3
http://www.___/___/2016/item/download/201_ffff026862846795a45310ca7fb9f4b3
Any ideas why the download from 'Show attachments' is corrupt?
Thanks in advance, Nick
I get this message when trying to open them after download: "There was an error opening this document. The file is damaged and could not be repaired."
This is a problem when Attachments is set to SHOW in 'Item view'. Clicking on the link to download the file, will download it, but it is corrupted and can't be opened.
However, when in admin, the download link in 'Operations' (where you add Attachments) will download the file correctly.
AND if that Operations link is copied and pasted for the visitors to download, then that works, and the file is fine.
Here are the two links to the files: the first one works fine (taken from admin) but the second one (from show attachments) does not. They both reference the same file:
http://www.___/administrator/index.php?option=com_k2&view=item&task=download&id=201_ffff026862846795a45310ca7fb9f4b3
http://www.___/___/2016/item/download/201_ffff026862846795a45310ca7fb9f4b3
Any ideas why the download from 'Show attachments' is corrupt?
Thanks in advance, Nick
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 10 months ago #155743
by Krikor Boghossian
Replied by Krikor Boghossian on topic PDF attachment corrupted on nownload
Hello Nick,
Which version of K2 and Joomla! are you using?
Can you send me a link to the issue please?
Which version of K2 and Joomla! are you using?
Can you send me a link to the issue please?
Please Log in or Create an account to join the conversation.
- nick
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
8 years 10 months ago #155745
by nick
Replied by nick on topic PDF attachment corrupted on nownload
Hi Krikor,
Thanks for getting back to me.
J! is 3.5.1
K2 is 2.7.0
Links (I've just added the 'normal' attachments link for this exercise)
www.treefruit.com.au/tree-fruit/2016/item/678-tree-fruit-april-2016
this 'Download attachments' link downloads the file, but it is corrupt.
If you log in, this is the link I provide (taken from admin): www.treefruit.com.au/administrator/index.php?option=com_k2&view=item&task=download&id=199_3f62e7ec79401a12e183af49775b5734
this link works fine and the file opens as expected.
I hope this helps. If you need access to my J! admin, please let me know.
Thanks, Nick
Thanks for getting back to me.
J! is 3.5.1
K2 is 2.7.0
Links (I've just added the 'normal' attachments link for this exercise)
www.treefruit.com.au/tree-fruit/2016/item/678-tree-fruit-april-2016
this 'Download attachments' link downloads the file, but it is corrupt.
If you log in, this is the link I provide (taken from admin): www.treefruit.com.au/administrator/index.php?option=com_k2&view=item&task=download&id=199_3f62e7ec79401a12e183af49775b5734
this link works fine and the file opens as expected.
I hope this helps. If you need access to my J! admin, please let me know.
Thanks, Nick
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 10 months ago #155808
by Krikor Boghossian
Replied by Krikor Boghossian on topic PDF attachment corrupted on nownload
Yes, you can use the contact form for credentials:
www.joomlaworks.net/support/contact
www.joomlaworks.net/support/contact
Please Log in or Create an account to join the conversation.
- nick
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
8 years 10 months ago #155821
by nick
Replied by nick on topic PDF attachment corrupted on nownload
Thanks Krikor,
I have sent you my Joomla login details.
I hope you will be able to help me.
Nick
I have sent you my Joomla login details.
I hope you will be able to help me.
Nick
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 10 months ago #155827
by Krikor Boghossian
Replied by Krikor Boghossian on topic PDF attachment corrupted on nownload
I got the mail Nick,
I will look into this.
I will look into this.
Please Log in or Create an account to join the conversation.
- nick
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
8 years 10 months ago #155956
by nick
Replied by nick on topic PDF attachment corrupted on nownload
Hello Krikor,
Have you had a chance to look into this, as the problem persists.
Let me know if you discover a reason for the problem, or a solution.
Thanks, Nick
Have you had a chance to look into this, as the problem persists.
Let me know if you discover a reason for the problem, or a solution.
Thanks, Nick
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 10 months ago #155967
by Krikor Boghossian
Replied by Krikor Boghossian on topic PDF attachment corrupted on nownload
I did but I cannot duplicate the issue on any site that I have, using either 2.7 or 2.7.1
I saw posts generally on pdf document corruption which were blaming PHP versions.
However, can you update to the DEV version and let me know if that helps? github.com/getk2/k2
PS. Backup first.
I saw posts generally on pdf document corruption which were blaming PHP versions.
However, can you update to the DEV version and let me know if that helps? github.com/getk2/k2
PS. Backup first.
Please Log in or Create an account to join the conversation.