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:
$file turns out empty. not array. have done wrong?
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
Post a Comment