- Posts: 404
COMMUNITY FORUM
Attachment link shows "File does not exist"
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
The backend download link works fine:
www2.icd10monitor.com/administrator/index.php?option=com_k2&view=item&task=download&id=74_c1f5c9ba4147c857b85c71ee7f58d64a
But the frontend link gives a "File does not exist" error page:
www2.icd10monitor.com/download/74_c1f5c9ba4147c857b85c71ee7f58d64a
Here is the frontend page: www2.icd10monitor.com/talk-ten-tuesdays/podcasts
How do I get the frontend link to work with my new root attachments folder?
Please Log in or Create an account to join the conversation.
- spock
-
- Offline
- Junior Member
- Posts: 26
but... no work fine for me.
The old files attached to articles no work dowload link from administration panel
i tested this option for my proyect and i return to original folder... :-(
If you have success and you do not find problems, I would be grateful if you told me to see what I did wrong.
Thank you and sorry 4 my english
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
The issue is still that the frontend link gives a "File does not exist" error page:
www2.icd10monitor.com/download/74_c1f5c9ba4147c857b85c71ee7f58d64a
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
www2.icd10monitor.com/index.php?option=com_k2&view=item&task=download&id=74_c1f5c9ba4147c857b85c71ee7f58d64a&Itemid=455
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
domain.com/administrator/...
So the frontend link looks like this now:
www2.icd10monitor.com/administrator/index.php?option=com_k2&view=item&task=download&id=74_c1f5c9ba4147c857b85c71ee7f58d64a
I doubt this hack should be necessary and I don't know if this is bad to have a link to the admin dir.
So can someone please help me fix this the correct way?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Which version of K2 are you using?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
J 3.6.5
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
But first can you confirm that the link structure looks correct:
www.icd10monitor.com/index.php?option=com_k2&view=item&task=download&id=76_48b65d31ad1d315cbe90fcdf9f0763d0
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
Krikor wrote: Can you try updating to 2.7.1 stable or the latest DEV build?
I just downloaded the latest version from getk2 and it is 2.7.1
The download link is still redirecting to a blank page with the text "File does not exist"
www.icd10monitor.com/download/78_a56ea6aa255bb61a9bdd928508d9efaa
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
www.icd10monitor.com/index.php?option=com_k2&view=item&task=download&id=76_48b65d31ad1d315cbe90fcdf9f0763d0
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
It had the same url structure as the other one: /index.php?option=com_k2&view=item&task=download&id=76_48b65d31ad1d315cbe90fcdf9f0763d0
So it doesn't appear to be a bug with k2.
****
I think it has to do with changing the "Change root attachments folder" to "../images/podcasts"
Do you see an issue with my path?
The reason I did this was so the user could select the same mp3 in the k2 media tab using the "Browse media on server".
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
I actually can't find that specific uploaded attachment anywhere on the server. I even checked the old root folder but nothing is here: /media/k2/attachments
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
So it appears that something is stopping a custom root attachments folder from working.
The reason I bad a custom root att folder is because the client also makes the same mp3 available using the media tab. But the
"Browse media on server" only looks in the "images" folder. I suppose a workaround is to get the media/k2/attachments folder to also appear when you click "Browse media on server".
But this sounds like it should not be necessary if I can just get the custom root attachments folder working.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
Now I can't even leave the "Change root attachments folder" empty. It just fills my custom "images/podcasts" back in upon saving.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I can pretty much enter any value, including blank values.
Please bear with me,
Yes, changing the root attachments folder" to "images/podcasts" allows the download link to work on the frontend BUT now the uploaded attachment does not get saved in "images/podcasts". That was why I had to add the ../ in the first place :-(
You never specified where the uploads were being saved.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
Topic Author
- Offline
- Platinum Member
- Posts: 404
I have tested the same issue on another k2 site. I changed the root attachment folder to images/test and uploaded a k2 attachment. The file did not appear in images/test. It does not appear in media/k2/attachments either. The backend k2 item attachment download link works. But the frontend also shows the "File does not exist".
Please Log in or Create an account to join the conversation.