I tried to change the backend code to this one, but it still not working and I get an error message ( An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables. File Uploads: 1 Max Upload File Size: 2M Post Max Size: 8M I can see the filename in a $_REQUEST variable.

<?phpdefined('C5_EXECUTE') or die("Access Denied.");$form= Loader::helper('form');if(isset($fileInfo)){?>
<p>
Your file with fID <?phpecho$fileInfo['fID']?> has been successfully
added to the Filemanager at the following location:<br />
<a href="<?phpecho$fileInfo['link']?>"
title="<?phpecho$fileInfo['name']?>">
<?phpecho$fileInfo['name']?>
</a>
</p>
<?php}// The most important thing to remember here is the enctype attribute// Without that, your file will never get uploaded?>

<?phpdefined('C5_EXECUTE') or die("Access Denied.");$form= Loader::helper('form');if(isset($fileInfo)){?>
<p>
Your file with fID <?phpecho$fileInfo['fID']?> has been successfully
added to the Filemanager at the following location:<br />
<a href="<?phpecho$fileInfo['link']?>"
title="<?phpecho$fileInfo['name']?>">
<?phpecho$fileInfo['name']?>
</a>
</p>
<?php}// The most important thing to remember here is the enctype attribute// Without that, your file will never get uploaded?>
<form method="post"
action="<?phpecho$this->action('file_upload')?>"
enctype="multipart/form-data">
<p><?phpecho t("This is just an example of how a custom
form with a file upload works.")?></p>
<?phpecho$form->file('myFile')?>
<input type="submit" name="submit" value="submit" />
</form>