Keyword

Attachments not work for somes file type

  • Ibrahim Noor
  • Ibrahim Noor's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #69991 by Ibrahim Noor
Attachments not work for somes file type was created by Ibrahim Noor
Hello,
I'm new. I try K2 and found attachments not work for somes file types such mp3 and pdf.
File does not exist

How to make it works?

attachment Link title (optional), but when i leave it blank the download link doesn't appear?

I hope final version will fixed it.

Thanks

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #69992 by Tero Lepistö
Replied by Tero Lepistö on topic Attachments not work for somes file type
Patched this one... So You need to replace administrator/components/com_k2/models/item.php

So replace function upload() At line ~616 with this attachment.
Attachments:

Please Log in or Create an account to join the conversation.

  • Ibrahim Noor
  • Ibrahim Noor's Avatar Topic Author
  • Offline
  • New Member
More
14 years 7 months ago #69993 by Ibrahim Noor
Replied by Ibrahim Noor on topic Attachments not work for somes file type
Hi,
Thanks for help reply, but your attachment patch content is function download() not function upload()

Would you please send function upload()

thanks.

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #69994 by Matthias Jäger
Replied by Matthias Jäger on topic Attachments not work for somes file type
hi,

i have the same problem, function upload does not exists in the item.php file.

any comments?

thanks.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #69995 by Shea Dawson
Replied by Shea Dawson on topic Attachments not work for somes file type
I really need a solution to this problem.
I suspect the issues lies in administrator/components/com_k2/lib/class.upload.php.

I Have hada a reasonable look through the file and changed some things which i thought may have helped but no luck.. its a little beyond me.

It's a really annoying issue, any other file type I have tried uploads fine... WAV files, PDF etc no problems.

Can anyone help us? ??

Thanks!

Shea

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #69996 by Shea Dawson
Replied by Shea Dawson on topic Attachments not work for somes file type
Great alternative option here.. works like a charm :)

k2community.joomlaworks.gr/forum/topics/found-a-way-to-add-mp3-files

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum