In the same server we have a simple file (.php) and he works fine.
I'm making a form to upload file, this is my code:
<form class='forum-form' accept-charset="utf-8" action='./formrms' method='post' enctype='multipart/form-data' >
<input type='file' id='attach' name='attach_file' multiple='multiple' accept='image/jpg,image/jpeg,image/gif,image/png' /> <!-- this is the input tag for the image attachment -->
<input type='submit' name='add_file' value='Add file'/> <!--this is the submit to upload image attachment before submitting entire form -->
<input type='submit' name='form_submit' value='Submit'/> <!-- this is the submit to send entire data -->
$attached_file = $this->session->attach_markup;
And this is the result:
I'm here "/site/templates/formrms.php", then I'm not in the admin templates.