JFactory::getApplication()->input empty - Joomla! Forum - community, help and support


good afternoon.
component own. works, data write db. try add field file uploading. read after sending, need process file in preparetable method
added following code model file:

code: select all

protected function preparetable(&$table){

$jinput = jfactory::getapplication()->input;
$files = $jinput->post->get('jform');
$file   = $files;
$filename = "/log.txt";
$string = $file;
$f = fopen($filename,"a+");
fwrite($f,$string);
fclose($f);
}


$file turns out empty. not array. have done wrong?

if file upload need read data $_files superglobal, accessed via $jinput->files->get('foo')





Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support