This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*------------------------------------------------------------------------ | |
# com_j2store - J2Store | |
# ------------------------------------------------------------------------ | |
# author Ramesh Elamathi - Weblogicx India http://www.weblogicxindia.com | |
# copyright Copyright (C) 2014 - 19 Weblogicxindia.com. All Rights Reserved. | |
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | |
# Websites: http://j2store.org | |
# Technical Support: Forum - http://j2store.org/forum/index.html | |
-------------------------------------------------------------------------*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
And my function in the controller to upload the file is: | |
*/ | |
function uploadAttachments($id){ | |
$files = JRequest::getVar('attachment_file', array(), 'files', 'array'); | |
$params = JComponentHelper::getParams('com_mycomp'); | |
$sizes = $files['size']; | |
$attachSize= $params->get('AttachmentMaxSize'); |