- Posts: 29
COMMUNITY FORUM
[SOLVED] K2 Attachments Path
- Joseph Rebele
-
Topic Author
- Offline
- Junior Member
I have a problem with K2 not changing the root folder for attachments. It continually directs to images/. I've used a relative path in Parameters/Advanced and an absolute path, as well. I cannot get the "browse on server" to redirect to another path other than images. I've ensured all my folders are set to a permission of 755. Any suggestions on how I can get this to redirect to another folder?
Thanks,
Joe
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
The browse server button is used to choose a file already uploaded in the server from a different location, to be stored in the one you have set in the global settings after you save the item.
Please Log in or Create an account to join the conversation.
- Joseph Rebele
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Thanks for the prompt reply. Now I understand that root folder for attachments. But if you do want to add an attachment using browser server, the default root folder is images/. I would think it would be media/k2/attachments.
Here is my problem. I have over 2,000 documents that I have placed in a folder under $ROOT/Content. I imported the document names into the k2_items_attachments table and have them associated with the proper K2 items. I can look at each of the items and see that the attachments are correct. If you try to download it, it says file does not exist. Is there any way to change the attachments folder location? At the moment, I have all the documents in media/k2/attachments and when I try to download, it says file does not exist. I even tried putting the files in images/ and I still get the error message file does not exist. Any thoughts on what I am doing wrong here?
Thanks,
Joe
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Joseph Rebele
-
Topic Author
- Offline
- Junior Member
- Posts: 29
The only special characters used are dash(-) and underscore(_) in the file names.
Thanks,
Joe
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Joseph Rebele
-
Topic Author
- Offline
- Junior Member
- Posts: 29
Correct. I loaded this table manually via a SQL script. The items display the correct attachments. You are correct. When I click download, I get the message no files exists. The files are loaded in /media/k2/attachments and I tried put a couple in /images, but still no download.
Thanks,
Joe
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Joseph Rebele
-
Topic Author
- Offline
- Junior Member
- Posts: 29
That worked! Thanks for the help.
Joe
Please Log in or Create an account to join the conversation.
- Litho-Verlag e.K.
-
- Offline
- Senior Member
- Posts: 67
I can not find it under the K2 settings.
(I know I have to update)?
Regards
Thomas
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Litho-Verlag e.K.
-
- Offline
- Senior Member
- Posts: 67
I still found it, but...
the uploaded files are laying in media/k2/attachments/
so I don't need to change the folder right?
I can see the attachments at the end of the items.
But the download doesn't work Error 404....
Where is my problem?
Here a link for example...
snookermania.de/index.php/snooker-startseite/3-national/1725-113-trainingsuebung-break-koblenz
Please Log in or Create an account to join the conversation.
- Litho-Verlag e.K.
-
- Offline
- Senior Member
- Posts: 67
Sorry if I made some stress.
I still copied the newst files under k2 components/templates.
Now it works...
Please Log in or Create an account to join the conversation.