Keyword

FIXED K2 Attachement function still broken..

  • galactus
  • galactus's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #66063 by galactus
Hi,

I use K2 2.5.7 with Joomla 2.5.4.

I uploaded an attachment in an Item and tested from the front-end to see if it was downloadable and not corupted, unfortunatly the images ( jpg, gif, etc.. ) became corupted after inserting them into K2 and therefore not viewable after download.

this issue was also known in earlier version of K2 see this article:
getk2.org/community/New-to-K2-Ask-here-first!/9506-Problems-with-uploading-attachments-files

Please fix this and if some one knows how I'm dying to hear how. The solution in the above mentioned article is not actual anymore for this version of K2

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

  • galactus
  • galactus's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 months ago #66064 by galactus
Fixed it according to info in previous post..

placed " ob_end_clean(); " within function download() in components/com_k2/controllers/item.php :


function download()
{

require_once (JPATH_COMPONENT_ADMINISTRATOR.DS.'models'.DS.'item.php');
ob_end_clean(); // added
$model = new K2ModelItem;
$model->download();
}

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


Powered by Kunena Forum