Skip to content

Commit

Permalink
joomla 4
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Mar 19, 2023
1 parent 0413403 commit 2293019
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions admin/models/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@ function importupload($post = array())
$src = $_FILES["fileToUpload"]['tmp_name'];
$dest = JPATH_BASE . '/tmp/' . $filename;

Factory::getApplication()->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' filename <pre>'.print_r($filename,true).'</pre>' ), '');
Factory::getApplication()->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' src <pre>'.print_r($src,true).'</pre>' ), '');
Factory::getApplication()->enqueueMessage(Text::_(__METHOD__.' '.__LINE__.' dest <pre>'.print_r($dest,true).'</pre>' ), '');

if (File::upload($src, $dest))
{
// The file has successfully been uploaded :)
echo 'The file has successfully been uploaded :)';
}
else
{
// Oh crap, something happened. Run!
echo 'Oh crap, something happened. Run!';
}


Expand Down

0 comments on commit 2293019

Please sign in to comment.